Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
50
print(
"Example 1"
)
51
def
print_distance(speed, duration):
52
distance = speed * duration
53
print(f
"{distance} miles"
)
54
55
print_distance(5, 2.5)
56
Callers
1
item_123.py
File · 0.85
Calls
3
convert
Function · 0.85
localize
Function · 0.85
require
Function · 0.85
Tested by
no test coverage detected