Hey guys, in this blog we will see a Python Program to Display Calendar.
Code
# Python Program to Display Calendar of the given month and year
# importing calendar module
import calendar
yy = int(input("Enter year: "))
mm = int(input("Enter month: "))
# display the calendar
print()
print(calendar.month(yy, mm))
Output

- We have used the Calendar package of Python to print the calendar of a specific month of a specific year.
- We are taking Month and Year as input from the user.
Check out our other python programming examples…


![[Latest] Python for Loops with Examples – Easiest Tutorial – 2025](https://machinelearningprojects.net/wp-content/uploads/2023/05/python-for-loops-1-1024x536.webp)


