csc-python-solutions/11/c/4 - Secure the Perimeter.py
2021-02-18 09:32:37 +01:00

5 lines
165 B
Python

def trianglePerimeter(xA, yA, xB, yB, xC, yC):
return distance2D(xA, yA, xB, yB
) + distance2D(xB, yB, xC, yC
) + distance2D(xC, yC, xA, yA)