Question: 1. Write a program named a1list.py that reads in a list of numbers, then outputs the list in the same order. Example: command>python a1list.py Enter

1. Write a program named a1list.py that reads in a list of numbers, then outputs the list in the same order.

Example:

command>python a1list.py Enter numbers separated by spaces from one line: 2 3 1 4 90 12 7 12 33 18 The list is: 2 3 1 4 90 12 7 12 33 18

command>

2. Write a program named a1reverse.py that reads in a list of numbers, then outputs the list in reverse order.

Example:

command>python a1reverse.py Enter numbers separated by spaces from one line: 2 3 1 4 90 12 7 12 33 18 The reversed list is 18 33 12 7 12 90 4 1 3 2

command>

3. Write a program named a1sort.py that reads in a list of numbers, then outputs the list of numbers in sorted order.

Example:

command>python a1sort.py Enter numbers separated by spaces from one line: 2 3 1 4 90 12 7 12 33 18 The sorted list is: 1 2 3 4 7 12 12 18 33 90

command>

4. Write a program named a1all.py that reads in a list of numbers, then outputs the list of numbers, next the list of numbers in reverse order, and finally the list of numbers in sorted order.

Example:

command>python a1all.py Enter numbers separated by spaces from one line: 2 3 1 4 90 12 7 12 33 18 The list is: 2 3 1 4 90 12 7 12 33 18 The reversed list is 18 33 12 7 12 90 4 1 3 2 The sorted list is: 1 2 3 4 7 12 12 18 33 90

command>

ALL IN PYTHON PLEASE

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!