Question: Chapter 7 - Lists and Tuples Write a Python program that uses the provided text file, numbers.txt , containing a list of numbers, one per

Chapter 7- Lists and Tuples
Write a Python program that uses the provided text file, numbers.txt, containing a list of numbers, one per line. The program should read the contents into a list and display the following statistics:
1. Sum of all numbers
2. Average of all numbers
3. Number of numbers in the file
4. Highest number in the file
5. Lowest number in the file
6. All numbers in the file sorted in ascending order (Lowest to Highest)
The file, numbers.txt has 13 numbers.

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 Programming Questions!