Java, .NET, PHP, PYTHON, ANGULAR, .NET, ML, Data Scince, Testing, CI Tutorials in Easy Languages.

"Best Software Training, Internship, Project Development center of Indore India, Helpline 780506-3968"

Calendar module in python:-


This module is basically used to provide data and time operations in Python Program.
Calendar module provide date range functionality in python.


The module is used to contain predefined functionality in Python program, Python is so rich for predefine functionality.all predefine functionality has been defined under the module.


 


import calendar
calendar.calendar(2014,3)
print(calendar.firstweekday())
if (calendar.isleap(2020)):
   print ("The year is leap year")
else :
   print ("The year is not leap year")
print (calendar.leapdays(1950, 2000)) 





Post a Comment

If you have any doubt in programming or join online classes then you can contact us by comment .

Previous Post Next Post