Question: Python Question E Problem program.pyclasslist.txt You're enjoying learning programming so much, you've decided to run your own class teaching programming basics. You've got plenty of

Python Question

Python Question E Problem program.pyclasslist.txt You're enjoying learning programming so much, you've

decided to run your own class teaching programming basics. You've got plenty

E Problem program.pyclasslist.txt You're enjoying learning programming so much, you've decided to run your own class teaching programming basics. You've got plenty of students signing up, and now you need to make logins for each of them. Since usernames (but not first names) have to be unique, you decide to write a program to help generate them. You should read in the classlist.txtwhich contains on each line. Your program should print out a list of usernames based on the following rules: . Username should be a students' first and, if applicable, middle If there already exists a student with that username, use their If that already exists, use firstname plus first letter of lastname, name(s), with no spaces, converted to lower case. firstname plus first letter of last name converted to lower case. plus a number, starting at 1 and counting up as required. For example, given the following classlist.txt Submissions Output classlist.txt Max Eisenhardt Katherine Pryde Anna Marie Darkholme James Howlett James Proudstar James Prindle James Bradley Autosaved then your program should print out: max katherine annamarie

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!