Question: Write a program to read positive numbers and print the data sorted in a variety of ways Prompt the user for integers as long as

Write a program to read positive numbers and print the data sorted in a variety of ways
Prompt the user for integers as long as the user is entering positive integers
Print out a list of all numbers in descending order
Print out a list of all even numbers, in the order they were entered
Print out a list of all odd numbers, in the order they were entered
Sample Run #1(bold, underlined text is what the user types):
Num? 10
Num? 3
Num? 5
Num? 4
Num? 1
Num? -1
All (sorted): [10,5,4,3,1]
Evens: [10,4]
Odds: [3,5,1]
Note: This a beginner level class and this problem is meant to be completed by using tuples and lists. Please no classes and everything is meant to be put into thier own function.

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!