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
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