Print Calendar Of Any Year With Just 2 Lines Of Code
In this article, I’ll show you those two lines of Python code, using which you can print calendar of any year.
The pre-requisite to generate calendar is to import the required package named calendar as shown below:
from calendar import *
Now to generate a calendar, we need to call constructor and pass in four parameters as shown below: