From a5afa024dd5cee3b540a8b215e858d66415bf1b5 Mon Sep 17 00:00:00 2001 From: Danny McDonald <mcddjx@gmail.com> Date: Sun, 22 Mar 2020 16:48:44 +0100 Subject: [PATCH] use f-string consistently! --- scripts/count.py | 2 +- scripts/wordcount.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/count.py b/scripts/count.py index fd05355..d5da1f0 100755 --- a/scripts/count.py +++ b/scripts/count.py @@ -58,7 +58,7 @@ def wordcount(filepath): # perform the counting using the Counter class counted = Counter(cleaned) # print top 10 most frequent - print("Counts:\n\n", counted.most_common(10), "\n\n") + print(f"Counts:\n\n{counted.most_common(10)}\n\n") # return the wordcount data to us after we call this function return counted diff --git a/scripts/wordcount.py b/scripts/wordcount.py index 6adf2ec..a03eb42 100755 --- a/scripts/wordcount.py +++ b/scripts/wordcount.py @@ -49,7 +49,7 @@ def wordcount(filepath): # perform the counting using the Counter class counted = Counter(cleaned) # print top 10 most frequent - print("Counts:\n\n", counted.most_common(10), "\n\n") + print(f"Counts:\n\n{counted.most_common(10)}\n\n") # return the wordcount data to us after we call this function return counted -- GitLab