Skip to content

Commit 40af1ba

Browse files
authored
fix(code snippet): Added a missing "f" for an f-string usedin the code snippet (#6222)
The last line in the code snippet was missing the 'f' before the double quotes, causing the statement not to print.
1 parent 7dc8a14 commit 40af1ba

File tree

1 file changed

+1
-1
lines changed
  • content/python/concepts/collections-module/terms/Counter

1 file changed

+1
-1
lines changed

content/python/concepts/collections-module/terms/Counter/Counter.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,5 @@ import collections
4747
c = collections.Counter("supercalifragilisticexpialidocious")
4848
print(f"Counter Collection: {c}\n")
4949
print(f"Sorted: {sorted(c.elements())}\n")
50-
print("5 Most Common Items: {c.most_common(5)}")
50+
print(f"5 Most Common Items: {c.most_common(5)}")
5151
```

0 commit comments

Comments
 (0)