import numpy as np xA = 2.3 yA = 8.1 xB = 7.4 yB = -13.5 avstand = np.sqrt((xB - xA)**2 + (yB - yA)**2) print(f'Avstanden mellom punkt A og B er {avstand:.3e}')