How to print a calendar with Python

Опубликовано: 20 Октябрь 2024
на канале: tondekush
626
5

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))