diff --git a/scripts/count.py b/scripts/count.py index fd05355a4855b3022934ef2d6896c4946c8b1e3a..d5da1f0ff64f7e5611ec14f00c8862ec65cee68a 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 6adf2ecec61e9e2492a7e39e72b376d1197458e3..a03eb4203aff54b77d5f35381c6cc44135e512c5 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