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

Function convert

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

Source from the content-addressed store, hash-verified

70}
71
72def convert(value, units):
73 rate = CONVERSIONS[units]
74 return rate * value
75
76def localize(value, units):
77 rate = CONVERSIONS[units]

Callers 1

print_distanceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected