Advertisement
Guest User

Untitled

a guest
Aug 24th, 2023
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.59 KB | None | 0 0
  1. month = input()
  2. date = int(input())
  3.  
  4. if month == "March" and date >= 20 or month == "April" or month == "May" or month == "June" and date < 21:
  5.     print("Spring")
  6. elif month == "June" and date >= 21 or month == "July" or month == "August" or month == "September" and date < 22:
  7.     print("Summer")    
  8. elif month == "September" and date >= 22 or month == "October" or month == "November" or month == "December" and date < 21:
  9.     print("Autumn")    
  10. elif month == "December" and date >= 21 or month == "January" or month == "February" or month == "March" and date < 20:
  11.     print("Winter")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement