Blog
Displaying Calendar
- Lakshya
- January 6, 2021
- 8:34 pm
- 3 Comments
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))
Good example
Thank you! 🙂
thnx bro 🙂