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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
>>> for i in range(1,7):
...     for j in range(1,7):
...         print(i * j)
... 
1
2
3
4
5
6
2
4
6
8
10
12
3
6
9
12
15
18
4
8
12
16
20
24
5
10
15
20
25
30
6
12
18
24
30
36

>>> r = dict()
>>> for i in range(1,7):
...     for j in range(1,7):
...         if i * j not in r:
...             r[i * j] = 0
...         r[i * j] += 1
... 
>>> r
{1: 1, 2: 2, 3: 2, 4: 3, 5: 2, 6: 4, 8: 2, 9: 1, 10: 2, 12: 4, 15: 2, 16: 1, 18: 2, 20: 2, 24: 2, 25: 1, 30: 2, 36: 1}


>>> for key, value in r.items():
...     print(str(key) + ": " + str(value * "@"))
... 
01: @
02: @@
03: @@
04: @@@
05: @@
06: @@@@
08: @@
09: @
10: @@
12: @@@@
15: @@
16: @
18: @@
20: @@
24: @@
25: @
30: @@
36: @