fork download
  1. import math
  2.  
  3. x, y = 1, 7
  4. tx, ty = 10, 3
  5.  
  6. dx, dy = tx-x, ty-y
  7.  
  8. d = math.sqrt(dx**2 + dy**2)
  9.  
  10. print d
Success #stdin #stdout 0.03s 6384KB
stdin
Standard input is empty
stdout
9.8488578018