Skip to content

Commit 5002266

Browse files
committed
minor cleanup
1 parent 2a4b963 commit 5002266

File tree

1 file changed

+44
-45
lines changed

1 file changed

+44
-45
lines changed

solve/transmissions/index.md

+44-45
Original file line numberDiff line numberDiff line change
@@ -53,51 +53,50 @@ Which contains table that can be used for decoding:
5353

5454
So in the first iteration I created alphabet with all characters I can understand and left others (CR, LTRS, FIGS) empty:
5555

56-
!!! note "Interation 1"
57-
```py
58-
letters={
59-
"1000111": "A",
60-
"1110010": "B",
61-
"0011101": "C",
62-
"1010011": 'D',
63-
64-
"1010110": "E",
65-
"0011011": "F",
66-
"0110101": "G",
67-
68-
"1101001": "H",
69-
"1001101": "I",
70-
"0010111": "J",
71-
"0011110": "K",
72-
"1100101": "L",
73-
74-
"0111001": "M",
75-
"1011001": "N",
76-
"1110001": "O",
77-
"0101101": "P",
78-
"0101110": 'Q',
79-
"1010101": "R",
80-
81-
"1001011": "S",
82-
"1110100": "T",
83-
"1001110": "U",
84-
"0111100": "V",
85-
"0100111": "W",
86-
"0111010": "X",
87-
"0101011": "Y",
88-
"1100011": "Z",
89-
"1011100": " ",
90-
91-
"1111000": "",
92-
"0110110": "",
93-
"1011010": "",
94-
}
95-
input="101101001101101101001110100110110101110100110100101101101010110101110010110100101110100111001101100101101101101000111100011110011011010101011001011101101010010111011100100011110101010110110101011010111001011010110100101101101010110101101011001011010011101110001101100101110101101010110011011100001101101101101010101101101000111010110110010111010110101100101100110111101000101011101110001101101101001010111001011101110001010111001011100011011"
96-
97-
for i in range(0, len(input), 7): # generate sequence 0, 7, 14 ... 441
98-
word = input[i:i+7] # take 7 characters starting at i
99-
print(letters[word], end="") # print letter from alphabet that corresponds to the sequence
100-
```
56+
```py title="Interation 1"
57+
letters={
58+
"1000111": "A",
59+
"1110010": "B",
60+
"0011101": "C",
61+
"1010011": 'D',
62+
63+
"1010110": "E",
64+
"0011011": "F",
65+
"0110101": "G",
66+
67+
"1101001": "H",
68+
"1001101": "I",
69+
"0010111": "J",
70+
"0011110": "K",
71+
"1100101": "L",
72+
73+
"0111001": "M",
74+
"1011001": "N",
75+
"1110001": "O",
76+
"0101101": "P",
77+
"0101110": 'Q',
78+
"1010101": "R",
79+
80+
"1001011": "S",
81+
"1110100": "T",
82+
"1001110": "U",
83+
"0111100": "V",
84+
"0100111": "W",
85+
"0111010": "X",
86+
"0101011": "Y",
87+
"1100011": "Z",
88+
"1011100": " ",
89+
90+
"1111000": "",
91+
"0110110": "",
92+
"1011010": "",
93+
}
94+
input="101101001101101101001110100110110101110100110100101101101010110101110010110100101110100111001101100101101101101000111100011110011011010101011001011101101010010111011100100011110101010110110101011010111001011010110100101101101010110101101011001011010011101110001101100101110101101010110011011100001101101101101010101101101000111010110110010111010110101100101100110111101000101011101110001101101101001010111001011101110001010111001011100011011"
95+
96+
for i in range(0, len(input), 7): # generate sequence 0, 7, 14 ... 441
97+
word = input[i:i+7] # take 7 characters starting at i
98+
print(letters[word], end="") # print letter from alphabet that corresponds to the sequence
99+
```
101100

102101
The output made me excited, I can even read the sentence:
103102
```txt

0 commit comments

Comments
 (0)