Articles → PYTHON → Calendar In Python

Calendar In Python






Example




import calendar

cal = calendar.month(2017,4)

print(cal)




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

Output


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