Python program to display the calendar of any month of any year by importing the calendar module

#Python program to display the calendar of any month of any year by importing the calendar moduLe.
#Import the calendar module

import calendar

#enter month and year

year = int(input("Enter year: "))

month = int(input("Enter month: "))

# display the calendar

print (calendar.month(year, month) )


Enter year: 2022
Enter month: 01
    January 2022
Mo Tu We Th Fr Sa Su
                1  2
3   4  5  6  7  8  9
10 11 12 13 14 15 16
17 18 19:20 21.22 23
24 25 26 27 28 29 30
31


About the Author



Silan Software is one of the India's leading provider of offline & online training for Java, Python, AI (Machine Learning, Deep Learning), Data Science, Software Development & many more emerging Technologies.

We provide Academic Training || Industrial Training || Corporate Training || Internship || Java || Python || AI using Python || Data Science etc






 PreviousNext