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

Abhishek Sharma
Abhishek Sharma

Started my Data Science journey in my 2nd year of college and since then continuously into it because of the magical powers of ML and continuously doing projects in almost every domain of AI like ML, DL, CV, NLP.

Articles: 514

Leave a Reply

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