MCPcopy 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
30def get_winner(ranks: Dict[str, int]) -> str:
31 return next(iter(ranks))
32
33from typing import Iterator, MutableMapping
34

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected