Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/geekcomputers/Python
/ getMid
Function
getMid
sierpinski_triangle.py:42–43 ·
view source on GitHub ↗
(p1, p2)
Source
from the content-addressed store, hash-verified
40
41
42
def
getMid(p1, p2):
43
return
((p1[0] + p2[0]) / 2, (p1[1] + p2[1]) / 2)
# find midpoint
44
45
46
def
triangle(points, depth):
Callers
1
triangle
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected