distance_ab.py

Created by enzo-ginhoux-07

Created on September 28, 2019

210 Bytes


from math import *
xA=float(input("xA= "))
yA=float(input("yA= "))
xB=float(input("xB= "))
yB=float(input("yB= "))
n=xB-xA
m=yB-yA
z=(n**2)+(m**2)
f=sqrt(z)
print("AB=",f,"cm ou racine de",z)