Skip to content

Commit 9b2d999

Browse files
Calendar Module
1 parent 3ce2a61 commit 9b2d999

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

Modules/calendar_module.py

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import calendar
2+
3+
print(calendar.weekheader(3))
4+
5+
print(calendar.firstweekday())
6+
7+
print(calendar.month(2021, 2))
8+
9+
print(calendar.monthcalendar(2021, 2))
10+
11+
print(calendar.calendar(2021))
12+
13+
day_of_the_week = calendar.weekday(2021, 2, 12)
14+
print(day_of_the_week)
15+
16+
is_leap_2021 = calendar.isleap(2021)
17+
is_leap_2020 = calendar.isleap(2020)
18+
print(is_leap_2021)
19+
print(is_leap_2020)
20+
21+
how_many_leap_days = calendar.leapdays(2000, 2021)
22+
print(how_many_leap_days)

0 commit comments

Comments
 (0)