Question
Make the average of the marks Write program by pythone Write a program that, with a loop, sums numbers provided by the user until a
Make the average of the marks
Write program by pythone
Write a program that, with a loop, sums numbers provided by the user until a zero is provided (use a while loop with a sentinel value).
This time, write the same previous program and use a for loop with a break instruction to stop the loop. Use a significant number in the range method to allow an almost arbitrary number of exams in input.
Select one of the previous programs and add the instructions to create a variable that track the number of values added (how many numbers the user imputed).
Complete the program calculating the average.
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