diff options
Diffstat (limited to 'wk7')
-rw-r--r-- | wk7/lect/favorites.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wk7/lect/favorites.py b/wk7/lect/favorites.py index 68fa769..e252de8 100644 --- a/wk7/lect/favorites.py +++ b/wk7/lect/favorites.py @@ -15,5 +15,5 @@ with open("favorites.csv") as file: favorite = row["language"] counts[favorite] += 1 -for favorite, count in counts.most_common(): - print(f"{favorite}: {count}") +favorite = input("Favorite: ") +print(f"{favorite}: {counts[favorite]}") |