# file: InClassAssignment1.py
#
# This program finds the distance between two given points
def main():
print("Hello! Let's find the distance between two points, using the formula")
print("distance = sqrt( (x2-x1)^2 + (y2-y1)^2 ).\n")
x1 = float(input("Enter the x-coordinate of the FIRST point:"))
y1 = float(input("Enter the y-coordinate of the FIRST point:"))
print()
x2 = float(input("Enter the x-coordinate of the SECOND point:"))
y2 = float(input("Enter the y-coordinate of the SECOND point:"))
import math
distance = math.sqrt( (x2-x1)**2 + (y2-y1)**2 )
print("The distance between points (",x1,",",y1,") and (" \
,x2,",",y2,") is",distance)
main()