month = (input('Enter the month (first 3 letters): '))
if month == ('Dec' or 'Jan' or 'Feb'):
season = ('Summer')
elif month == ('Mar' or 'Apr' or 'May'):
season = ('Autumn')
elif month == ('Jun' or 'Jul' or 'Aug'):
season = ('Winter')
elif month == ('Sep' or 'Oct' or 'Nov'):
season = ('Spring')
else:
season = ('not real')
print('The month of',month,'is',season,)
I don't know why this isn't working. It came back saying season isn't defined. It works for the first result of each. Dec, Mar, Jun, Sep for example. Help please :)