Question: CHALLENGE ACTIVITY 29.3. Using math functions to calculate the distance between two points Assign point.dist with the distance between point (x1, y1) and point (x2.y2).
CHALLENGE ACTIVITY 29.3. Using math functions to calculate the distance between two points Assign point.dist with the distance between point (x1, y1) and point (x2.y2). The calculation is Distance = SquareRootOf((x2-x1)2 + (x2 - y2) Sample output with inputs: 1.0 2.0 1.050 Points distance: 3.0 1 import wath 2 1 point dist - 0.0 5.- float(input) byl - float(input) 7 x - float(input) y2- float(input()) 10 1 Your solution goes here 11 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
