Question: Swap names Complete the following function according to its docstring Note: this function should returm None. Its job is to modify the list passed as

 Swap names Complete the following function according to its docstring Note:

Swap names Complete the following function according to its docstring Note: this function should returm None. Its job is to modify the list passed as its argument. 2 1 Hef svap name (name_list: List(str]) -None: 2ame 1ist contains a single person's name. Modify name list so that the first nane and last name are swapped. name'John', swap name (name) name 6 8 'Snith', John' 9> name'John,Andrew,Gleeson Smith' 10 10 swap name (name) 11> name 12 'Snith', Andrew, Glees on'John' 13

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!