Get your
own Python
server
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
# Import math Library import math p = [3] q = [1] # Calculate Euclidean distance print (math.dist(p, q)) p = [3, 3] q = [6, 12] # Calculate Euclidean distance print (math.dist(p, q))
2.0
9.486832980505138