Python code to print a calendar

Python code to print a calendar

import calendar

print(calendar.month(2022,1))

calendar is an in-built module in python which helps to perform calendar related operations. month() is a method in the calendar module.

*You can read more about calendar from the official Python documentation.

https://docs.python.org/3/library/calendar.html

Post a Comment

0 Comments