Months of April , June , Sept and Nov must have number of days less than or equal to 30.
if ( m == 4 or m == 6 or m == 9 or m == 11 ) : NEW_LINE INDENT return ( d <= 30 ) NEW_LINE DEDENT return True NEW_LINE