Write the programme to accept the percentage of a student and displaythe grade accordingly
Percentage;85 -grade 'A'
Percentage;70<=85 - grade 'B'
Percentage;60<=70 - grade 'C'
Percentage;45<=60 - grade 'D'
Otherwise - grade 'E'
Answers
Answered by
1
p=int(input("Enter your percentage:"))
if p>85:
print("Grade : A")
elif 70<p<=85:
print("Grade : B")
elif 60<p<=70:
print("Grade : C")
elif 45<p<=60:
print("Grade : D")
else:
print("Grade : E")
Similar questions
Computer Science,
5 months ago
Computer Science,
5 months ago
Chemistry,
5 months ago
English,
11 months ago
Psychology,
11 months ago
Math,
1 year ago
Physics,
1 year ago