Question: List Program - Write a python program that requests a list of positive numbers from a user; the list must contain at least 5 elements.
List Program - Write a python program that requests a list of positive numbers from a user; the list must contain at least 5 elements. If not, ask the user to try again. The program should print the list in the order the user entered it. Then ask the user to enter a number that is NOT in the list. If entered incorrectly, have them try again. Append the new number to the end of the original list the user made, and print the list again for the user and ask the user "is this list sorted correctly (Y or N)" If the user responds N, sort the list and print it out again. Else, tell the user "good, let's do this again".
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
