Calculate the average marks of 28 students for English, Maths and Science (average for 3 subjects). Write down coding using WHILE loop that will help him to accomplish this task. Use an array for each subject. (PYTHON PROGRAM)
Answers
Answered by
1
Answer:
The program accepts user input using the input function. Next, run loop till the entered number using the for loop and range() function. Next, calculate the sum using a sum = sum + current number formula. At last, after the loop ends, calculate the average using average = sum / n .
Similar questions
English,
4 months ago
Math,
4 months ago
English,
4 months ago
Chemistry,
8 months ago
Political Science,
1 year ago