color: #ff6666;
text-shadow: 0 0 20px #333;
padding: 2px 5px;
+ }
+ .indexlink {
+ position: absolute;
+ bottom: 1em;
+ left: 1em;
}
.float-right {
float: right;
---
+layout: true
+
+.indexlink[[Index](index.html)]
+
+---
+
# The cipher
* Still character-by-character substitution, still monosubstitution.
```python
from enum import Enum
-class Keyword_wrap_alphabet(Enum):
+class KeywordWrapAlphabet(Enum):
from_a = 1
from_last = 2
from_largest = 3
2. and 3. How to find the appropriate letter of the keyword.
-Indexing pulls out letters. `'keyword'[0]` = 'k' ; `'keyword'[3]` = 'w' ; `'keyword'[-1]` = 'd'
-
-Slices pulls out substrings. `'keyword'[1:4]` = 'eyw' ; `'keyword'[:3]` = 'key' ; `'keyword'[5:]` = 'rd'
-
`deduplicate(keyword + string_ascii_lowercase[from:] + string.ascii_lowercase)`
Question: why not take a slice of the second alphabet copy?