Seasons

Report a typo

You were asked to create a stacked tuple called months (a so-called "tuple of tuples") with the names of months. Each tuple contains months belonging to the corresponding season of the year starting with winter months:

months = (('December', 'January', 'February'), 
          ('March', 'April', 'May'), 
          ('June', 'July', 'August'),
          ('September', 'October', 'November'))

The months tuple is already defined in this task, you don't need to create it.

You will get 3 successive months of the year in the input. Your task is to read the input, create a tuple of input months and check if it is in the months tuple. If it is so, print True, otherwise, False.

Sample Input 1:

December January February

Sample Output 1:

True
Write a program in Python 3
three_months = input().split()
___

Create a free account to access the full topic