Mindistance solution

$14.99

Original Work ?
Category: You will Instantly receive a download link for .ZIP solution file upon Payment

Description

5/5 - (3 votes)

You should save the solution to this problem in a file called mindistance.py if you wish to use the tester program. write a function called mindistance that takes a single 2-dimensional list argument as input. Each of the items in this argument list will be a list with 2 numbers representing the x and y location of a point in 2D space. The function must return the 2-element list representing the x and y location of the point that is closest to the origin (x=0, y=0). You can calculate the distance between a point (x,y) and the origin (0,0) with the equation:√x2+y2 route (x square + y square)