parameters: (year, month)
return_statement: return day1, ndays
docstring: Return weekday (0-6 ~ Mon-Sun) and number of days (28-31) for
         year, month.
docstring_summary: Return weekday (0-6 ~ Mon-Sun) and number of days (28-31) for
         year, month.
docstring_tokens: Return weekday ( 0 - 6 ~ Mon - Sun ) and number of days ( 28 - 31 ) for year month .
function: def monthrange(year, month):
      """Return weekday (0-6 ~ Mon-Sun) and number of days (28-31) for
         year, month."""
      if not 1 <= month <= 12:
          raise IllegalMonthError(month)
      day1 = weekday(year, month, 1)
      ndays = mdays[month] + (month == February and isleap(year))
      return day1, ndays
function_tokens: def monthrange ( year , month ) : if not 1 <= month <= 12 : raise IllegalMonthError ( month ) day1 = weekday ( year , month , 1 ) ndays = mdays [ month ] + ( month == February and isleap ( year ) ) return day1 , ndays