import numpy as np a = np.array((1, 2)) b = np.array((3, 4)) dist = np.linalg.norm(a-b) print("The distance is:", dist)