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))				
			
Share on facebook
Share on whatsapp
Share on pinterest
0 0 votes
Rating
Subscribe
Notify of
guest
3 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Louieabx
Louieabx
1 year ago

Good example

mohammed
mohammed
5 months ago

thnx bro 🙂