Removing Middle Names Using Unpacking
Complete the function below. It should remove any middle names (if present) and return only the first and last names. Hint: Use unpacking with the
*
operator. You'll also need to split the name string into individual substrings.Premium
Python
Setting up Python environment...
Output