if
Last updated
Was this helpful?
Was this helpful?
aunts = int(input("How many aunts do you have? "))
uncles = int(input("How many uncles do you have? "))
print("I have",aunts,"aunts and",uncles,"uncles")num = int(input("Give me a number: "))
if num > 0:
print(num, "is positive")
if num < 0:
print(num, "is negative")
if num == 0:
print(num, "is zero")hot = input("Is it hot today? ")
if hot == "Yes":
print("It's always hot!")
if hot == "No":
print("It's always cold!")money = float(input("How much money do you have? "))
if money >= 99.99:
print("You're rich!")
if money < 99.99:
print("You're not rich!")uncles = int(input("How many uncles do you have? "))
aunts = int(input("How many aunts do you have? "))
if aunts > uncles:
print("You have more aunts than uncles")
if aunts < uncles:
print("You have more uncles than aunts")
if aunts == uncles:
print("You have the same number of aunts and uncles")
if aunts != uncles:
print("You do not have the same number of aunts and uncles")