Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/subbarayudu-j/TheAlgorithms-Python
/ getMid
Function
getMid
other/sierpinski_triangle.py:40–41 ·
view source on GitHub ↗
(p1,p2)
Source
from the content-addressed store, hash-verified
38
points = [[-175,-125],[0,175],[175,-125]]
#size of triangle
39
40
def
getMid(p1,p2):
41
return
( (p1[0]+p2[0]) / 2, (p1[1] + p2[1]) / 2)
#find midpoint
42
43
def
triangle(points,depth):
44
Callers
1
triangle
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected