Python program to check student grade in examination using if-elif statement

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 टिप्पण्या