1please check out my video also - https://www.youtube.com/watch?v=ZA3XAZ-dB5M&t=9s
2please subscribe my channel - https://bit.ly/2Me2CfB
3
4# importing the calendar module
5import calendar
6
7#taking input of year from the user
8y = int(input("ENTER THE YEAR : "))
9
10#taking input of month from the user
11m = int(input("ENTER THE MONTH : "))
12
13# making calendar in the 'cal' variable
14cal = calendar.month(y, m)
15
16# print the cal (calendar is stored in the cal variable)
17print(cal)
1import calendar
2
3print("Your Calender\n \n ")
4
5y = int(input("Enter the Year : "))
6m = int(input("Enter the month : "))
7try:
8 mycalender = calendar.month(y , m)
9 print("\n", mycalender)
10except IndexError:
11 print("Its out of range")
1import calendar
2yio = int(input('Input a month'))
3s = int(input('Input a year'))
4print(calendar.month(s,yio))