Question: Python Programming Use the file integer s.txt as input for a program to read all of the values stored in the file and report the
Python Programming
Use the file integers.txt as input for a program to read all of the values stored in the file and report the count, the total, and the average (to 3 decimal places) of all the numbers. There is no user input for this program. Make sure the data file and the code are in the same folder. Your output should look something like this:
There are 68 values in the file. The total of all values is 1296, for an average of 19.059 per value.
Below are the numbersz in the integers.txt file
8 22 16 13 25 21 10 37 9 15 24 23 11 12 30 17 27 10 13 19 23 24 20 13 16 27 19 17 38 15 16 22 12 27 12 18 10 15 29 19 19 21 33 33 24 24 22 8 16 11 11 15 10 11 33 17 24 18 23 20 18 32 18 19 16 14 22 10
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
