Suppose you have a set of 10 different shapes in 2d, where each is defined by its vertices(meeting points).You are expected to find the closest shape to the starting point(0,0). Find the distance between the starting point(0,0) and the closest vertex of the shape. Determine the shape with the smallest distance from the starting point.
I tried implementing python concepts like while loops. For example I declared 10 different variables and I looped their values.