0

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.

Sifat
  • 11
  • 1
  • Just measure distances, and choose vertex with shortest distance, and find related shape. Please provide: an example input (in Python syntax), the expected output for that input, the code you have tried with, and what the problem is you bumped into in your attempt. – trincot Mar 12 '23 at 10:43

0 Answers0