Question: For this question, you need the provided person module saved in the same folder as the sorting _ people.py file you'll create.After importing the person

For this question, you need the provided person module saved in the same folder as the sorting_people.py file you'll create.After importing the person module, you will be able to create a Person object like this: person.Person("Smith", "John"), where the two arguments are the person's last and first names. For example,import personp = person.Person("Smith", "John")print(p)Use this class to create a program like this that asks the user for some number of people's names. It should build a list of Person objects in a loop, sort it (with the list's .sort method), and then print the people out by going through the sorted list.How many people? 3First name: ApuLast name: NahasapeemapetilonFirst name: MontgomeryLast name: BurnsFirst name: AgnesLast name: SkinnerHere they are in order:Burns, MontgomeryNahasapeemapetilon, ApuSkinner, Agnes If you print a Person object, it will be printed in the lastname, firstname format you need. You can also extract the last and first name with the .lastname() and .firstname() methods.

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!