def thanksgiving(year, country='<STR_LIT>'):
if country == '<STR_LIT>':<EOL><INDENT>if year in [<NUM_LIT>, <NUM_LIT>]:<EOL><INDENT>return nth_day_of_month(<NUM_LIT:3>, THU, NOV, year)<EOL><DEDENT>elif year == <NUM_LIT>:<EOL><INDENT>return nth_day_of_month(<NUM_LIT:4>, THU, NOV, year)<EOL><DEDENT>else:<EOL><INDENT>return nth_day_of_month(<NUM_LIT:0>, THU, NOV, year)<EOL><DEDENT><DEDENT>if country == '<STR_LIT>':<EOL><INDENT>return nth_day_of_month(<NUM_LIT:2>, MON, OCT, year)<EOL><DEDENT>
USA: last Thurs. of November, Canada: 2nd Mon. of October