Answered step by step
Verified Expert Solution
Link Copied!

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 finished--the 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 least-best 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 list--the 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 8 conventions as you understand them, and all variables should have descriptive names/identifiers (e.g., "manufacturer" would be a more descriptive name than "m"). The name of the program should also follow PEP 8 guidelines, and should be descriptive of what the program does rather than what assignment it is. In other words, don't name it module_01_lab or similar.
Python

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

Real Time Database Systems Architecture And Techniques

Authors: Kam-Yiu Lam ,Tei-Wei Kuo

1st Edition

1475784023, 978-1475784022

More Books

Students also viewed these Databases questions

Question

What are the stages of project management? Write it in items.

Answered: 1 week ago