csc-python-solutions/11/c/4 - Secure the Perimeter.py

5 lines
165 B
Python
Raw Normal View History

2021-02-18 08:32:37 +00:00
def trianglePerimeter(xA, yA, xB, yB, xC, yC):
return distance2D(xA, yA, xB, yB
) + distance2D(xB, yB, xC, yC
) + distance2D(xC, yC, xA, yA)