Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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, RodrigoStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started