Total and Percentage of Marks
Programs with input · Beginner · about 5 min
Read a student's marks in five subjects, each a whole number out of 100, one per line. Print the total as Total: 395, then the percentage rounded to 2 decimal places as Percentage: 79.00.
The prompts inside input() are not checked, only what you print.
Example
You type:
78 85 92 66 74
The program prints:
Total: 395 Percentage: 79.00
marks1 = int(input("Marks in subject 1: "))
# Read the other four subjects, then print the total and the percentage
The solution opens after your first Check.