Python program to display calendar

Spread the love

In this tutorial, you will learn about Python program to display calendar.

For this you need to import the calendar from library.

import calendar # Enter the month and year yy = int('2019') mm = int('05') # display the calendar print(calendar.month(yy,mm))

Output:

      May 2019
Mo Tu We Th Fr Sa Su
       1  2  3  4  5
 6  7  8  9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31

 

admin

admin

Leave a Reply

Your email address will not be published. Required fields are marked *