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

Function print_distance

example_code/item_123.py:51–53  ·  view source on GitHub ↗
(speed, duration)

Source from the content-addressed store, hash-verified

49
50print("Example 1")
51def print_distance(speed, duration):
52 distance = speed * duration
53 print(f"{distance} miles")
54
55print_distance(5, 2.5)
56

Callers 1

item_123.pyFile · 0.85

Calls 3

convertFunction · 0.85
localizeFunction · 0.85
requireFunction · 0.85

Tested by

no test coverage detected