<<<<<<< HEAD
"""learning simple if else"""
#learning python
# age =int(input("Enter your present age"))
# if age > 18:
#     print("You are 18+")
# elif age == 18:
#     print("You are equal to 18")
# else:
#     print("You are below 18")
"""learning single line if else"""
# Grade =int(input("Enter Your grade:"))
# result = "pass" if Grade > 60 else "fail"
# print(result)
"""learning nested if else"""
grade =int(input("Enter your grade"))
if grade > 40:
    if grade >= 60:
        if grade < 80:
            print ("first division")
    elif grade >= 80 and grade < 70:
        print("distintion")
    else:
        print("second division")
else:
        print("fail")
        


 
=======
#learning python
'''age= int(input("Enter your age:"))
if age > 18:
print("You are above 18")
elif age == 18:
    print("You are equal to 18")
else:
    print("You are below 18")'''
#single line:
#grade= int(input("Enter your marks: "))
#result= "pass" if grade > 40 else "fail"
#print(result)

#nested loop
grade =int(input("Enter your marks: "))
if grade > 40:
    if grade >= 60:
        if grade < 80:
            print("First Division")
    elif grade >= 80 and grade < 90:
        print("Distinction")
    else:
        print("Second Division")
else:
    print("Fail")
>>>>>>> 831ddb7b8a2fa8672faab45e65a1fd356d387bcc
