diff --git a/Chapter_1/ETAOIN_practice.py b/Chapter_1/ETAOIN_practice.py index 90e1444..eee08f7 100644 --- a/Chapter_1/ETAOIN_practice.py +++ b/Chapter_1/ETAOIN_practice.py @@ -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) @@ -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)