Annie W.

asked • 11/01/20

python math help

Assign point_dist with the distance between point (x1, y1) and point (x2, y2). The calculation is: Distance = SquareRootOf( (x2 - x1)2 + (y2 - y1)2 ). 


Sample output with inputs: 1.0 2.0 1.0 5.0

Points distance: 3.0


Patrick B.

source code uploaded to RESOURCES under this link.. you must rename the file to ptython with *.py extension
Report

11/03/20

1 Expert Answer

By:

Patrick B. answered • 11/03/20

Tutor
4.7 (31)

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.