From bf0987d0bccd4ca2e1c35247058394d282804b5b Mon Sep 17 00:00:00 2001 From: sayampradhan <112542130+sayampradhan@users.noreply.github.com> Date: Fri, 14 Oct 2022 23:39:21 +0530 Subject: [PATCH] Format Code --- Chapter_1/ETAOIN_practice.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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)