Displaying Calendar

A code to display the calendar of a specified month in a specified year using Python programming.

Welcome to the code! Here’s a simple code to display the calendar of the specified month in the specified year.

In this code, the user is asked to input the month and year, using which the calendar of that month in that year is displayed as output. We use “calendar module” to simplify the program.

Note: Loved the post? You too can publish your article on “Python for fun” which will be loved by millions. Contribute an article!

							
							
					import calendar

yy = int(input("Enter year: "))
mm = int(input("Enter month: "))

print(calendar.month(yy, mm))				
			
4.5 2 votes
Rating
Subscribe
Notify of
guest
3 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Louieabx
Louieabx
2 years ago

Good example

mohammed
mohammed
1 year ago

thnx bro 🙂