Question: Python question.......... Problenm 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

Python question..........

Python question.......... Problenm 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

Problenm 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 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 If there already exists a student with that username, use their If that already exists, use firstname plus first letter of lastname, For example, given the following classlist.txt classlist.txt Max Eisenhardt Katherine Pryde Anna Marie Darkholme James Howlett James Proudstar James Prindle James Bradley 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!