Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ translate
Function
translate
example_code/item_056.py:181–183 ·
view source on GitHub ↗
(point, delta_x, delta_y)
Source
from the content-addressed store, hash-verified
179
180
print(
"Example 14"
)
181
def
translate(point, delta_x, delta_y):
182
point.x += delta_x
183
point.y += delta_y
184
185
186
print(
"Example 15"
)
Callers
1
item_056.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected