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

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!