Articles → PYTHON → Calendar In Python
Calendar In Python
Example
import calendar
cal = calendar.month(2017,4)
print(cal)
- Calendar module is imported
- The Month function is called with year and month as parameters
- Display the calendar
Output
Click to Enlarge