Skip to content

Commit 7b2110b

Browse files
committed
On branch main
Your branch is up to date with 'origin/main'. Changes to be committed: new file: counter.py
1 parent 13cdd3a commit 7b2110b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

counter.py

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from collections import Counter
2+
3+
backpack = [
4+
"sword", "rubber duck", "slice of pizza", "parachute",
5+
"sword", "rubber duck", "slice of pizza", "parachute",
6+
"sword", "rubber duck", "slice of pizza", "parachute",
7+
"sword", "rubber duck", "slice of pizza", "parachute",
8+
"cannon", "laser cannon", "canon 90D", "can of soup"
9+
]
10+
11+
print(Counter(backpack))

0 commit comments

Comments
 (0)