Alphalearningschool
        

<<< Prev

Next >>>

Up
Python Calendar Module

Python contain calendar module they contain different method to represent the calendar, for that we have to import calendar library in python program.

Let understand with the example of python calendar.

Ex:
import calendar
cal=calendar.month(2018,11)
print(cal)

O/P-

 

Now let see 2019 whole year calendar 

Ex:
import calendar
calendar.prcal(2019)

O/P-