Get your own Python server Result Size: 625 x 565
x
 
# 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