write a program to calculate the grades of students
Answers
Answered by
2
Answer:
i hope this helps you.. I was not able to upload the sheets completely so please co-operate
Attachments:
Answered by
0
Answer:
Explanation:
name = input("enter student name:")
m = eval(input("enter marks of 5 subjects"))
avg = (m[0]+m[1]+m[2]+m[3]+m[4])/5
if avg > 90:
print(name,"got average:",avg,"and grade is:A+")
elif avg > 80:
print(name,"got average:",avg,"and grade is:A")
elif avg > 70:
print(name,"got average:",avg,"and grade is:B")
elif avg > 60:
print(name,"got average:",avg,"and grade is:C")
else:
print(name,"got average:",avg,"and grade is:D")
Similar questions