mercredi 3 février 2021

I get the same output, what can I change. PYTHON [duplicate]

the only output I get is 'It is winter' no matter what I input. Even if I input an integer I still get it. What do I change

season = str(input('Enter a month: '))
if season == 'January' or 'February' or 'December':
    print('It is Winter')
elif season == 'March' or 'May' or 'April':
    print('It is Spring')
elif season == 'July' or 'August' or 'June':
    print('It is Summer')
else:
    print('It is Fall')

Aucun commentaire:

Enregistrer un commentaire