#NEWLINE# def assign_day_to_week( day , month , year , dates ) : #NEWLINE# #INDENT# ( start , middle , end ) = start #NEWLINE# d = date ( int ( year ) , int ( month ) , int ( day ) ) #NEWLINE# return ( 2 if ( d >= middle ) else 1 )