Question: Please use Python for this program Design and write a program that reads in the numbers from your random.txt file of numbers and inserts the
Design and write a program that reads in the numbers from your random.txt file of numbers and inserts the numbers into a list. Once the numbers are in the list, the program should then calculate and display the following data: . The lowest number in the list. The highest number in the list. . The total of the numbers in the list. . The average of the numbers in the list displayed to one decimal place. Once the numbers are in the list, your program should not use any loops to calculate any of the numbers being displayed. Use Python functions to determine these values. Extra thought (not required): See if you can figure out a way to get the lowest and highest numbers without writing your own loop and without using any functions that start with the letter 'm' Sample execution: Python 3.64 Shell File Edit Shell Debug Options Window Help Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:04:45) [MSC v.1900 32 bit (Intel) on win32 Type "copyright", "credits" or "license )" for more information RESTART: P:/Cmpsc131/Programming Assignment Solutions/PA8NumberListAnalysis.py The following numbers were read from the random.txt file: 253 121 439 72 354 78 433 71 122 198 58 366 156 14 191 494 312 192 456 The lowest number in the list is:4 The highest number in the list is: 494 The total of the numbers is: 4384 The average of the numbers in the list is: 219.2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
