Reference no: EM132354084
Question
1) Ask the user to enter X numbers into a list.
2) Put those numbers into a list, and show the list.
3) Calculate and show the sum, average, min, max of those numbers.
4) You are not allowed to use any pre-existing python functions such as sample(), sum(), min(), max(), average(), sort(), sorted()!!!...unless you write them yourself.
5) Now make another list, but with double the values of the first list.
HINT's to find Smallest:
1) Use one loop to make a list of X numbers.
2) After the above loop, make Smallest equal to the first item on the list
3) Use a second loop to check if any ITEM on the list is less than Smallest, if so then Smallest = ITEM
Sample Run:
How many numbers would you like to enter? 11
Enter number 1: 26
Enter number 2: 23
...
Enter number 11: 34
List 1: [ 26, 23, 48, 32, 44, 21, 32, 20, 49, 48, 34 ]
Sum = 377
Average = 377 / 11 = 34.3
Smallest = 21
Largest = 49
List 2: [ 52, 46, 96, 64, 88, 42, 64, 40, 98, 96, 68 ]