Can someone please look at this and tell me what's wrong?
I tried running it but when you say no
for raining and no
for snowing , it still prints out the if true statement You can't ride your bike
raining = input("Is it raining right now?\nYes or No?\n")
if raining.lower() == "yes" :
raining = True
else:
raining = False
snowing = input("Is it snowing out?\nYes or No\n")
if snowing.lower() == "yes" :
snowing = True
else:
snowing = False
if raining or snowing == True :
print("You can't ride your bike")
if raining and snowing == False :
print("You can ride your bike")
cost = input("How much is your new PC?")
cash = input("How much money do you have?")
total = float(cash) + float(cost)
if total < 0 :
print("You can't buy it")
if total >= 0 :
print ("You can buy it")