import math def distance x1 y1 x2 y2 print float math sqrt x2-x1 y2-y1

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
import math
def distance(x1,y1,x2,y2):
print float(math.sqrt((x2-x1)**2+(y2-y1)**2))
def enter(x,y):
x,y=raw_input('x='), raw_input('y=')
return x, y
print 'Kor dot numb 1:'
x1, y1 = enter(x1,y1)
#x1, y1 = int(raw_input('x1=')), int(raw_input('y1='))
print 'Kor dot numb 2:'
x2, y2 = enter(x2,y2)
#x2, y2 = int(raw_input('x2=')), int(raw_input('y2='))
distance(x1,y1,x2,y2)
raw_input('Press any key to Exit')