Print calendar of specific year
## # Python's program to print calendar of specific year. import calendar cal_display = calendar.TextCalendar(calendar.MONDAY) # Year: 2019 # Column width: 1 # Lines per week: 1 # Number of spaces between month columns: 0 # No. of months per column: 2 print(cal_display.formatyear(2019, 1, 1, 0, 2))
Sample output of above program.
2018-02-24T09:06:53+05:30
2018-02-24T09:06:53+05:30
Amit Arora
Amit Arora
Python Programming Tutorial
Python
Practical Solution