X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=slides%2Fkeyword-encipher.html;h=168bb5fb78628f7b0161d56641613646d4b62136;hb=6aedd8f4118deada8b750569fb9443fe786c6cfa;hp=bb9e679775b9163bd9b19f9e636d3ee6fc1d3262;hpb=5c3365f66a322e0295c890429b91578bdf11021b;p=cipher-training.git diff --git a/slides/keyword-encipher.html b/slides/keyword-encipher.html index bb9e679..168bb5f 100644 --- a/slides/keyword-encipher.html +++ b/slides/keyword-encipher.html @@ -161,10 +161,6 @@ Write out the rest of the alphabet... 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?