# A program that reads two points A(x1,y1) and B(x2,y2), # computes the Euclidean distance between them, and prints the result. import math print "This program computes the distance between the points A(x1,y1) and B(x2,y2)." x1 = input("x1: ") y1 = input("y1: ") x2 = input("x2: ") y2 = input("y2: ") distance = math.sqrt((x1 - x2)**2 + (y1 - y2)**2) print # print a blank line print "The Euclidean distance between A and B is", distance