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

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