Question
a Python program that prompts the user to enter grades to a list, alist (which is initially empty), and calculate the sum and average of
a Python program that prompts the user to enter grades to a list, alist (which is initially
empty), and calculate the sum and average of the entered grades. The user will continue
entering grades until he/she enters the sentinel value -1.
Notes:
- Grades are in the range from 0 to 20.
- the program should use the while loop to input the grades
- theprogram should print the final list, the sum, and the average (rounded to two figures).
- One of the grades should be the last digit of your ID +10. For example, if your ID
number is 020787521426, then one of the entered grades should be 16 (6+10)
the output :
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started