TOPIC

Compilation error 25% in Python3

Thiago Sales Freire Luz asked 6 months ago

from math import sqrt

x1, x2 = [float(i) for i in input().split()] y1, y2 = [float(i) for i in input().split()]

distance = sqrt((x2-x1)2 + (y2-y1)2)

print("{:.4f}".format(distance))

Remember not post solutions. Your post may be reviewed by our moderators.

  • Pedro Leocir replied 6 months ago

    p1 = input().split(" ") p2 = input().split(" ")

    x1 = float(p1[0]) y1 = float(p1[1]) x2 = float(p2[0]) y2 = float(p2[1])

    sla = ((x2 - x1)2) + ((y2 - y1)2) sla = (sla)**0.5 print("{:.4f}".format(sla))

    MOD