Write a Python program to get the last day of a specified year and month.


Topic: Write a Python program to get the last day of a specified year and month.

Solution

import calendar
year = 2020
month = 12 
print(calendar.monthrange(year, month)[1])



List all Python Programs