Python program to check student grade in examination using if-elif statement
p=int(input("Enter percentage:"))
if p>=70:
print("You have got distinction")
elif p>=60:
print("You have got first class")
elif p>=50:
print("You have got second class")
elif p>=40:
print("You are just pass")
else:
print("You are fail in examination")
Output:
Enter percentage:50
You have got second class
0 टिप्पण्या
कृपया तुमच्या प्रियजनांना लेख शेअर करा आणि तुमचा अभिप्राय जरूर नोंदवा. 🙏 🙏