Come up with a Python program to analyze donations for a fictional non-profit. Copy the numbers given
Fantastic news! We've Found the answer you've been seeking!
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 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
Related Book For
Posted Date: