X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=slides%2Fcaesar-break.html;h=9aea6810e8f371f4aaf313bb2b9f4998dcab50e3;hb=4834ec43391c8f39d91eb9de28a6e7616140cdd7;hp=f296e44142197dec2eadd10ac5d773ffb3087cca;hpb=eaab4a47bd8a28435b175e89e3fb4ae1a4dca0d3;p=cipher-training.git diff --git a/slides/caesar-break.html b/slides/caesar-break.html index f296e44..9aea681 100644 --- a/slides/caesar-break.html +++ b/slides/caesar-break.html @@ -197,9 +197,9 @@ def unaccent(text): # Find the frequencies of letters in English 1. Read from `shakespeare.txt`, `sherlock-holmes.txt`, and `war-and-peace.txt`. -2. Find the frequencies -3. Sort by count (`sorted(, key=)` ; `.items()`, `.keys()`, `.values()`, `.get()`) -4. Write counts to `count_1l.txt` +2. Find the frequencies (`.update()`) +3. Sort by count +4. Write counts to `count_1l.txt` (`'text{}\n'.format()`) ---