13.WAP to accept percentage of candidate and display on of the following demand.

 CODE:

percentage=float(input("Enter the percentage\n"))

if percentage>=70:

    print("Destination")

elif percentage>=60:

    print("First Class")

elif percentage>=50:

    print("Second Class")

elif percentage>=40:

    print("Pass") 

else:

    print("Fail")

OUTPUT:

Enter the percentage

50

Second Class

Comments

Popular posts from this blog