Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Chapter_1/ETAOIN_practice.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
from collections import defaultdict

# Note: text should be a short phrase for bars to fit in IDLE window
text = 'Like the castle in its corner in a medieval game, I foresee terrible \
trouble and I stay here just the same.'
text = "Like the castle in its corner in a medieval game, I foresee terrible \
trouble and I stay here just the same."

ALPHABET = 'abcdefghijklmnopqrstuvwxyz'
ALPHABET = "abcdefghijklmnopqrstuvwxyz"

# defaultdict module lets you build dictionary keys on the fly!
mapped = defaultdict(list)
Expand All @@ -18,6 +18,6 @@

# pprint lets you print stacked output
print("\nYou may need to stretch console window if text wrapping occurs.\n")
print("text = ", end='')
print("text = ", end="")
print("{}\n".format(text), file=sys.stderr)
pprint.pprint(mapped, width=110)