samedi 6 février 2021

I dont know why my if statement does not print

while True:
    area = input("Where do you live? ")
    if len(area) > 12:
        True
        print("Thank you for this information")
        allow = input("Would you allow us to use this for research? ")
        if allow.upper == "NO":
            print("Ok have a good day")
        elif allow.upper == "YES":
            print("Thank you for allowing us to use this information")
        break
    else:
        False
        print("Please Type correct information")

Aucun commentaire:

Enregistrer un commentaire