import math x, y = 1, 7tx, ty = 10, 3 dx, dy = tx-x, ty-y d = math.sqrt(dx**2 + dy**2) print d
Standard input is empty
9.8488578018
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!