Checkpoint 25.7.1.
Complete the
getSeason
function so that it returns the correct season for each month. We want it to accept “dec” or “Dec” or “December” or “DECEMBER” as all being the same thing, so we will convert the month to lower case and then use in
to test it.Code for the Winter months is already there, write code for the other seasons. If there is no logical match for the
monthName
, we will want to return “???” as the season.Hints:
1. There are a couple of ways to make sure that
"???"
gets returned as the default value for season.2. To make a bunch of exclusive options, remember that it works better to use if/elif/elif/else instead of if/if/if/if