MCPcopy Create free account
hub / github.com/bslatkin/effectivepython / localize

Function localize

example_code/item_123.py:76–78  ·  view source on GitHub ↗
(value, units)

Source from the content-addressed store, hash-verified

74 return rate * value
75
76def localize(value, units):
77 rate = CONVERSIONS[units]
78 return value / rate
79
80def print_distance(
81 speed,

Callers 1

print_distanceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected