''' Program : Which no is greater '''
num1 = int(input("Enter first no. :"))
num2 = int(input("Enter Second no. :"))
if num1 > num2 :
print(num1, "is greater than", num2)
elif num1 == num2:
print(num2, "and", num2, "are equal")
else :
print(num2, "is greater than", num1)
OR we can also use Short If-Else ->
print(num1, "is greater than", num2) if num1 > num2 else print(num2, "is greater than", num1)
''' Program : search item in List '''
lst = int(input("Enter item to search in List: "))
list1 = [1, 2, 3, 4, 5, 6, 7, 'akash', 8, 9, 0, 10, 33, 12, 23, 34]
if lst in list1 :
print(lst, "are present in list")
else:
print(lst, "are not present in", list1)
''' Program : Driving Licence '''
age = int(input("Enter your age : "))
if age > 18 and age < 85: print("Congrats! You are eligible to get licence :) ")
elif age>5 & age < 18: print("You are not eligible to get licence, as you are under age !")
elif age == 18 : print("You can get licence behalf on your Physical fitness ")
else : print("You entered invalid age :(")