"""WAP to calculate the distance between two points."""
import math
# input
x1, y1 = map(float, input("Enter the x and y coordinates of the first point, separated by a space: ").split())
x2, y2 = map(float, input("Enter the x and y coordinates of the second point, separated by a space: ").split())
# Calculate the distance between the two points
distance = math.sqrt((x2 - x1)**2 + (y2 - y1)**2)
# Print the result
print("The distance between the two points is:", distance)
To embed this project on your website, copy the following code and paste it into your website's HTML: