Program:
s1=90;s2=80;s3=70;s4=85;s5=75;s6=60
total=s1+s2+s3+s4+s5+s6
per=(total/600)*100
print("TOTAL=",total)
print("PERCENTAGE=",round(per,2))
if(per>=70):
print("GRADE A")
elif(per>=60):
print("GRADE B")
elif(per>=50):
print("GRADE C")
else:
print("GRADE D")
Output: