id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

month_to_season


Given the month is numeric form (1 is Jan, 7 is July), Your program should return the season. (1->”winter”, 7->”summer”).


month_to_season(1) → 'winter'
month_to_season(2) → 'winter'
month_to_season(3) → 'spring'

...Save, Compile, Run (ctrl-enter)

def month_to_season(given_month):

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Python Help

Difficulty: 101 Post-solution available

Copyright Nick Parlante 2017 - privacy