jeudi 26 août 2021

If statement isn't printing [closed]

I'm a beginner in python and coding in general.

I was messing around with if statements and whenever I ran this code, it would never print what I asked it to, it would only print what was in the else statement.

I'm putting my code down below and if someone could help me understand the issue that'd be great, thanks!

canyou = input("Can you make a good meal on your own? ")
canyou1 = input("Can you wash your clothes well? ")
canyou2 = input("Can you clean the house properly? ")

if canyou.upper == "no" and canyou1.upper == "no" and canyou2.upper == "no":
    print("You need your mama")
else:
    print("You don't need your mama")

Aucun commentaire:

Enregistrer un commentaire