hi guys, I'm new to python and i can't seem to understand this one line of code right here:
distance, coordinates = min([(someFunction(state, coordinates), coordinates) for coordinates in coordinatesList])
coordinatesList contains a list of paired coordinates (x,y). someFunction returns an int. My question is why isn't distance and coordinates contain the same integer? i mean after the min() function, it should return an int, right? however, my print statements have coordinates as (someX, someY) and distance as some integer. How is this possible?