Can someone explain me how to do this program?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people's questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Krishna Vijayan
Here is the python program to print the calendar of a given month and a year:
import calendar
#importing the library named calendar to do programs which includes dates, month and years
y = int(input(“Input the year : “))
m = int(input(“Input the month : “))
print(calendar.month(y, m))
#month(x,y) function takes two arguments: x for choosing the year and y for choosing the month.
Hope this answer helped. Also read, Python Program To Print The Extension Of A File Name