I've got a python function that should loop through a tuple of coordinates and print their contents:
def do(coordList):
for element in coordList:
print element
y=((5,5),(4,4))
x=((5,5))
When y is run through the function, it outputs (5,5) and (4,4), the desired result. However, running x through the function outputs 5 and 5.
Is there a way to force x to be defined as a tuple within a tuple, and if not, what is the easiest way to resolve this problem?