Posts

Showing posts with the label calendar module

Printing a month calendar in Python

All you need to do to print a month calendar in python. import calendar print(calendar.month(2023, 1)) # .month takes two arguments, year and month number