This commit is contained in:
Samuel Vermeulen 2023-01-06 10:59:18 +01:00
parent 912692a4ae
commit 34618150ad

View File

@ -0,0 +1,12 @@
from math import *
def euclidienne(z1: float, y1: float, z2: float, y2: float):
x = sqrt((z2 - z1)**2 + (y2 - y1)**2)
return x
valZ1 = float(input())
valY1 = float(input())
valZ2 = float(input())
valY2 = float(input())
print(euclidienne(valZ1, valY1, valZ2, valY2))