Write a python programm to check two given integers and print true if one of them is 30 or if thier sum is 30 else pri fal

 #Write a python programm to check  two given integers and print

#true if one of them is 30 or if thier sum is 30 else pri fal
a=int(input("Enter first number:"))
b=int(input("Enter second number:"))
if a==30 or b==30 or a+b==30:
    print("True")
else:
    print("False")

Comments

Popular posts from this blog

Write a python script to display the current date and time. First create variables to store date and time, then display date and time in proper format (like: 13-8-2022 and 9:00 PM """