Computer Science, asked by YOURDADPRODUCTION, 16 days ago

Write a python program to input marks of five subjects and return their average marks and percentage​.

Answers

Answered by samarthkrv
1

Answer:

grades = []

esm = int(input("How many marks for each subject? \n"))

print("Enter marks of all 5 subjects-")

total = 0.0

for i in range(5):

   x = float(input())

   grades.append(x)

   total = total + grades[i]

print("Your average is:",(total/5))

print("Your percentage is:",(total/(esm*5))*100,"%")

Explanation:

Similar questions