![]() |
Calendar module allows to output calendars like program, and provides additional useful functions related to the calendar. Functions and classes defined in Calendar module use an idealized calendar, the current Gregorian calendar extended indefinitely in both directions.
Code #1: Working example of itermonthdays2() method
Output: The starting day number in calendar is : 0 (0, 0) (0, 1) (0, 2) (0, 3) (0, 4) (1, 5) (2, 6) (3, 0) . . (29, 5) (30, 6)
Code #2 : Working example of itermonthdays2() method with firstweekday=2
Output: (0, 2) (0, 3) (0, 4) (1, 5) (2, 6) (3, 0) (4, 1) . . (27, 3) (28, 4) (29, 5) (30, 6) (0, 0) (0, 1) |
Reffered: https://www.geeksforgeeks.org
Python |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 9 |