1.18.1 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.18.1 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.0Points distance: 3.0



import math


point_dist = 0.0


x1 = float(input())
y1 = float(input())
x2 = float(input())
y2 = float(input())


''' Your solution goes here '''


print('Points distance:', point_dist)




Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here