-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpy_testing.py
More file actions
45 lines (37 loc) · 958 Bytes
/
py_testing.py
File metadata and controls
45 lines (37 loc) · 958 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# coded by h4sski
from datetime import date
import calendar
def main():
FIRST = 1
SECOND = 1
THIRD = 1
FOURTH = 1
for i in range(4):
FIRST += 1 * i
print(f'First =\t\t{FIRST}')
SECOND += 2 * i
print(f' Second =\t {SECOND}')
THIRD += 3 * i
print(f' Third =\t {THIRD}')
if __name__ == '__main__':
# main()
today = date.today()
# print(today.month)
c = calendar.TextCalendar(calendar.MONDAY)
str = c.formatmonth(today.year, today.month)
# print(str)
# str = c.formatmonth(today.year(), today.month())
# print(calendar)
# for t in range(1, 13):
# print(f't = {t}')
# if t in [1, 3, 5, 7, 8, 10, 12]:
# print(31)
# elif t == 2:
# print(28)
# else:
# print(30)
dictionary = {}
list = [0, 1, 2, 3, 4, 5, 66]
for i, v in enumerate(list):
dictionary[i].append(v)
print(dictionary)