Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ get_winner
Function
get_winner
example_code/item_025_example_17.py:30–31 ·
view source on GitHub ↗
(ranks: Dict[str, int])
Source
from the content-addressed store, hash-verified
28
ranks[name] = i
29
30
def
get_winner(ranks: Dict[str, int]) -> str:
31
return
next(iter(ranks))
32
33
from
typing
import
Iterator, MutableMapping
34
Callers
1
item_025_example_17.py
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected