In [5]:
milk = float(input("How many gallons of milk do you have? "))
if milk < 1:
print("Buy more milk!")
else:
print("You're good for now!")
In [2]:
diapers = input("do you need diapers? ")
beer = input("do you need beer? ")
if diapers == 'yes' and beer=='yes':
print("You'd better get to the store, ASAP!")
else:
print("No need to go to the store yet!")
In [ ]: