Python program to print a calendar of the specified month and year

In today’s tutorial, we are going to create a python program to print the calendar of a given year and month. So let us start with a Python program to print a calendar.

 

Video Tutorial: Python program to print a calendar 

 

Source Code: Python program to print a calendar 

 

#Python Program to print a calendar
# of the specified month and year
import calendar
year =int(input ("Enter Year : "))
month = int( input ("Enter Month : "))
print ("\n", calendar.month(year, month))

 

Output:

 

Python program to print a calendar 

 

Also Read: Happy Republic Day 2022 status 🇮🇳 INDIAN FLAG on Python

Leave a Reply

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