Python: Find the indices of the closest pair from given a list of ...

Responsive image
source