import math
P1=[]
P2=[]
X1=int(input("Enter the x co-ordinate of starting point:")) 
Y1=int(input("Enter the y co-ordinate of starting point:"))
x2=int(input("Enter the x co-ordinate of ending point:"))
y2=int(input("Enter the co-ordinate of ending point:"))
P1.append(x1)
P1.append(x2)
P2.append(x2)
p2.append(y2)
distance = math.sqrt( ( (p1[ 0]-p2[0] )**  2)+((p1[1]-p2[1])** 2) )
print(" distance=%f"%distance)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: