Python Program to input your percentage and print grade
''' Percentage(%) Grade
91-100 A
81-90 B
71-80 C
0-70 D '''
per=int(input('enter perentage'))
if per>=91 and per<=100:
print('Grade A')
elif per>=81 and per<=90:
print('Grade B')
elif per>=71 and per<=80:
print('Grade c')
elif per>=0 and per<=70:
print('Grade D')
else:
print('invalid marks')
Comments
Post a Comment