import calendar import datetime month = datetime.date.today().month year = datetime.date.today().year print (calendar.month(year,month))