hi im doing a program which doesnt end even when you put in the wrong answer which it should? many thanks oxxoxox
ChildrenUnderSix = input('Is there anyone in your household under the age of 6?')
if ChildrenUnderSix == ("Yes" or "YES" or "yes"):
print('Sorry our dogs are not suitable for families with children under the age of 6')
return
else:
ChildrenUnderSix = "No"
GardenSecure = input('Do you have a secure back garden?')
if GardenSecure == ("No" or "no" or "NO"):
print('Sorry our dogs are not suitable for homes with an unsecure garden')
return
Aucun commentaire:
Enregistrer un commentaire