grade in exam using if else elif in Python
if else & elif
Mark of a student in Exam is taking as input. Based on this mark grade is decided by using if , elif and else.
More than or equal to 80 is A grade
More than or equal to 60 is B grade
More than or equal to 40 is C grade
Less than 40 mark is Fail
m=int(input("Enter your mark "))
print("You got A grade")
print("You got B grade")
print("You got C grade")
print("Failed in this Exam ")
Video Tutorial on if else elif
View and Download if_else_elif ipynb file ( .html format )
if else elif
This article is written by plus2net.com team.