Program to know if person is pass or fail and tell designation || Conditional Statement || Python

In this we are going to see a program to know if person is pass or fail and tell designation in Python Programming Language.


math = int(input("Enter The Marks Of Maths(100 mrks) : "))
phy = int(input("Enter The Marks Of Physics(100 mrks) : "))
chem = int(input("Enter The Marks Of Chemistry(100 mrks) : "))
sum = math + phy + chem
percentage = (sum*100)/300
if percentage >= 75:
    print("PASS , Distinction")
elif percentage >= 60 and percentage < 75:
    print("PASS , 1st Class")
elif percentage >= 40 and percentage < 60:
    print("PASS , 2nd Class")
elif percentage >= 35 and percentage < 40:
    print("PASS")
else:
    print("FAIL")

# Coded By DHIRAJ SHELKE


#ENJOY CODING


Post a Comment

FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP

Previous Post Next Post