Tuesday, November 12, 2019

9-5 Even Better Tag

(Use this as a template: https://py3.codeskulptor.org/#user304_7xcGHINCju_7.py)

Pythagorean Theorem
def distance(p,q):
    return math.sqrt( ( p[0] - q[0] ) ** 2 + ( p[1] - q[1] ) ** 2 )

No comments:

Post a Comment