write down the python program to find the distance between two points
Answers
Answer:
hello, here i have used the distance formula ....
Explanation:
#python program to find the distance between two points
x1=eval(input("enter the value of x1"))
x2=eval(input("enter the value of x2"))
y1=eval(input("enter the value of y1"))
y2=eval(input("enter the value of y2"))
d=((((x2-x1)**2)+((y2-y1)**2))**(1/2))
print("using distance formula the distance between two points is:",d)
hope it helps you
please mark brainliest
@ItzSnowySecret07
The distance between two points is :-
# python 3
# To find the distance between two points.
important math,
//"*points
x1=int(input("enter x1 : "))
x2=int(input("enter x2 : "))
y1=int(input("enter y1 : "))
y2=int(input("enter y2 : "))
result= ((((x2 - x1 )^2) + ((y2-y1)^2) )^0.5)
print("distance between",(x1,x2),"and",(y1,y2),"is : ",result)
______________________________________