human
Get Last Day of the Month
assistant
Here is some code to get Last Day of the month `month` in year `year`

calendar.monthrange(year, month)[1]

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.