I'm new to programming and just trying to wrap my head around lists and clone data.
My task is to gather x-position data from all clones created (user integer input creates number of clones) and find the 2 closest clones relative to their x-position, and present that information in a list. The y-position of all clones is locked and irrelevant.
I am struggling with comparing all the x-position data to find the closest pair.
Any help is greatly appreciated