6 lines
125 B
Python
6 lines
125 B
Python
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)
|