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