Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create a program that stores the names of the user's friends. Prompt the user to input the number of friends they would like to input
Create a program that stores the names of the user's friends. Prompt the user to input the number of friends they would like to input and store that value in a variable. Next, use a loop to ask for each name and store it in a list, repeating until the appropriate number of names have been added. Note that the user should not have to indicate when they are finishedthe loop should stop automatically based on the number of names the user specified at the start of the program.
Then, output the user's best friend the first name in the list and the user's leastbest friend the last name in the list After that, create a loop that outputs the entire list.
Finally, output an "acronym" of the names in the listthe first letter in each person's name combined into one word which is almost certainly just a jumble of letters!
All code should follow PEP conventions as you understand them, and all variables should have descriptive namesidentifiers eg "manufacturer" would be a more descriptive name than m The name of the program should also follow PEP guidelines, and should be descriptive of what the program does rather than what assignment it is In other words, don't name it modulelab or similar.
Python
Step 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