I need to get the closest point from a given point in a screen ( X,Y ), from a list. My code is almost right:
from scipy.spatial.distance import cdist def closes