Python program to display month of calendar. To do so, we need to import the calendar module which comes with Python.
Syntax:
calendar.month(year,month)
Let us see the python code to display calendar month.
# Python program to display month and year of the calendar # Import the calendar module import calendar # input month and year to display calendar yy = int(input("Enter a Year : ")) mm = int(input ("Enter a Month : ")) # Display month of the calendar print(calendar.month(yy,mm))
Output: