def month_days(year, month):
if month > <NUM_LIT>:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>if month in (IYYAR, TAMMUZ, ELUL, TEVETH, VEADAR):<EOL><INDENT>return <NUM_LIT><EOL><DEDENT>if month == ADAR and not leap(year):<EOL><INDENT>return <NUM_LIT><EOL><DEDENT>if month == HESHVAN and (year_days(year) % <NUM_LIT:10>) != <NUM_LIT:5>:<EOL><INDENT>return <NUM_LIT><EOL><DEDENT>if month == KISLEV and (year_days(year) % <NUM_LIT:10>) == <NUM_LIT:3>:<EOL><INDENT>return <NUM_LIT><EOL><DEDENT>return <NUM_LIT:30><EOL>
How many days are in a given month of a given year