Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

if you had a list of lists for example L=[ [1,2] [3,4] [5,6] [7,8] [9,10] ] and you are supposed to find the closest distance from all these

if you had a list of lists for example

L=[ [1,2] [3,4] [5,6] [7,8] [9,10] ]

and you are supposed to find the closest distance from all these co-ordinates

and the formulae for distance is

sqrt [ (x2-x1)^2 + (y2-y1)^2 ]

and then display it as;

"the closest two co-ordinates are [6, 3] and [4, 3] with a distance of 2.0 "

how do you do handle this in python3.0

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question