Articles → PYTHON → Calendar In Python

Calendar In Python






Example




import calendar

cal = calendar.month(2017,4)

print(cal)




  1. Calendar module is imported.
  2. Month function is called with year and month as parameter.
  3. Display the calendar.


Picture showing the output of calendar in python

Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Wednesday, February 27, 2019

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250