how to get the calendar of current month in python

Solutions on MaxInterview for how to get the calendar of current month in python by the best coders in the world

showing results for - "how to get the calendar of current month in python"
Savannah
18 Mar 2017
1import calendar
2import datetime
3month = datetime.date.today().month
4year = datetime.date.today().year
5print (calendar.month(year,month))