Answered step by step
Verified Expert Solution
Link Copied!

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?

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Management Systems Designing And Building Business Applications

Authors: Gerald V. Post

1st Edition

0072898933, 978-0072898934

Students also viewed these Databases questions

Question

Explain walter's model of dividend policy.

Answered: 1 week ago

Question

How do Excel Pivot Tables handle data from non OLAP databases?

Answered: 1 week ago