Question: Come up with a Python program to analyze donations for a fictional non-profit. Copy the numbers given below into the yearlydonations.txt file. Make sure to

Come up with a Python program to analyze donations for a fictional non-profit.  Copy the numbers given below into the yearlydonations.txt file.  Make sure to save this file in the directory when creating the Python file.

The program should open the yearlydonations.txt file and read the donations into a list.  The program should then output the following information, in this order:

  • The total of all donations in the list
  • The lowest donation in the list
  • The highest donation in the list
  • The average of all donations in the list 

NOTE: The program should include at least one user-defined function, in addition to the main function.

 3001
4152
1595
7995
3385
6560
5207
7000
9900
900
3250
3850
4750
4200
5733
6141
1730
1700
6370
6638
3903
4950
2321
1253
9637


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!