Create a gist now

Instantly share code, notes, and snippets.

>>> import math
>>> a = (1,1)
>>> b = (1,2)
>>> math.sqrt((b[0] - a[0])**2 + (b[1] - a[1]) ** 2)
1.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment