Python Program to Display Calendar – 2024

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

Python Program to Display Calendar
  • 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

Leave a Reply

Your email address will not be published. Required fields are marked *