Write a program in Python to display the monthly calendar
1 2 3 4 5 6 7 |
import calendar # Please Enter the desired month and year yy = int(input(
"Please Enter desired year: ")) mm = int(input("Please Enter desired month: ")) # Showing the calendar print(calendar.month(yy,mm)) |
Output
Please Enter desired year: 2021
Please Enter desired month: 10
October 2021
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