Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Professional Visual Basic 6 Databases

Authors: Charles Williams

1st Edition

1861002025, 978-1861002020

More Books

Students also viewed these Databases questions