Question: please help Assign point dist with the distance between point (x1,y1) and point (x2,y2). The calculation is: Distance = SquareRootOf ((x2. x1)2+(y2y1)2) Sample output with
Assign point dist with the distance between point (x1,y1) and point (x2,y2). The calculation is: Distance = SquareRootOf ((x2. x1)2+(y2y1)2) Sample output with inputs: 1.0201 .05 .0 Points distance: 3.0 Code writing challenge activity demo 1 import math 2 3 point_dist =0.0 4 51= float(input()) 6 y1 = float(input()) 72= float(input()) 8 y2 = float(input ()) 9 10 Your solution goes here * 111 12 print('Points distance:' point_dist)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
