Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ frequency
Method
frequency
example_code/item_057.py:55–59 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
53
super().__init__(members)
54
55
def
frequency(self):
56
counts = {}
57
for
item in self:
58
counts[item] = counts.get(item, 0) + 1
59
return
counts
60
61
62
print(
"Example 2"
)
Callers
1
item_057.py
File · 0.80
Calls
1
get
Method · 0.45
Tested by
no test coverage detected