if elif conditional statements in python practical example code

Here is information about the contents of the python practical examples if elif conditional statement.

marks = 99
if marks >= 90:
grade = 'A'
elif marks >= 80:
grade = 'B'
elif marks >= 70:
grade = 'C'
elif marks >= 60:
grade = 'D'
else:
grade = 'F'
print(grade)





Guess you like

Origin www.cnblogs.com/whoamboys/p/11363323.html