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.
0 Comments