From: Neil Smith Date: Mon, 24 Mar 2014 10:23:20 +0000 (+0000) Subject: More work on slides X-Git-Url: https://git.njae.me.uk/?a=commitdiff_plain;ds=sidebyside;h=4834ec43391c8f39d91eb9de28a6e7616140cdd7;hp=-c;p=cipher-training.git More work on slides --- 4834ec43391c8f39d91eb9de28a6e7616140cdd7 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()`) ---