mardi 14 avril 2020

I do not understand why this code not printing "plz enter valid month"? [closed]

This is my code:

while(1):
    ``month`=int(input("Enter any month"))
    if month<0 and month>12:
        print("plz enter valid month")
    else:
        print("yes")
        break

The code is not showing as it is intended to:

Enter any month 129
yes

Where did I go wrong?

Aucun commentaire:

Enregistrer un commentaire