fork download
  1. # your code goes here
  2. #0JLQsNGB0LjQu9C10L3QutC+INCQ0YDRgtC10Lwg
  3. #просте завдання номер 1.4
  4. import math
  5.  
  6. def progAB(ax, ay, bx, by):
  7. ax = int(ax)
  8. bx = int(bx)
  9. ay = int(ay)
  10. by = int(by)
  11.  
  12. r = math.sqrt((bx-ax)**2+(by-ay)**2 )
  13.  
  14. print(f"AB = BA = {r}")
  15.  
  16.  
  17. progAB(4,4,1,0)
  18.  
Success #stdin #stdout 0.11s 14148KB
stdin
Standard input is empty
stdout
AB = BA = 5.0