How can I iterate over only the first variable of a tuple
- by Peter Smit
In python, when you have a list of tuples, you can iterate over them. For example when you have 3d points then:
for x,y,z in points:
pass
# do something with x y or z
What if you only want to use the first variable, or the first and the third. Is there any skipping symbol in python?