Next Index Previous

Python Examples

22. Program to print year and month calendars.

import calendar

print(calendar.calendar(2023))

print(calendar.month(2023,10))
Output :
It displays 2023 year calendar and October,2023 month calendar.



Father of Python Language

Guido-van-Rossum

Guido van Rossum

Born: January 31, 1956, Netherlands