Import the calendar module.
Python code:
from calendar import *
#Create a function
def year(x):
print(calendar(x,2,1,8,3))
year(put in any year you like)
#another way of doing it.
yr = int(input("Please enter year: "))
print(calender(yr, 2,1,8,3))