Question: How would you complete the following in python? Function name: make_roster Parameters students (str), filename (str) Return value: None Description: Take in a string of
How would you complete the following in python?

Function name: make_roster Parameters students (str), filename (str) Return value: None Description: Take in a string of students. The format of the students will beFirst Last, First Last, First Last. Write the names of the students to the file specified by the parameter. Write each line in the format "Last, First". Each student should be in a different line, and the students should be sorted alphabetical by last name. Make sure there is no newline character after the last student Test Cases make_roster("Caroline Kish, David Wang, First Last", "out1.txt") out 1.txt out1.txt 1 Kish, Caroline Last, First Wang, David make_roster("Rodrigo Mejia, Daniel Marcos, Daniel Barrundia", "out2.txt") out2.txt 1 Barrundia, Daniel Marcos, Daniel Mejia, Rodrigo
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
