>>> for (a,b) in ((1, 2), (3, 4)):
... print a,b
...
1 2
3 4
>>> for (a,b) in ((1, 2),):
... print a,b
...
1 2
>>> for (a,b) in (1, 2):
... print a,b
...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: 'int' object is not iterable
>>> reduce(lambda x,y: (x,y), range(9))
((((((((0, 1), 2), 3), 4), 5), 6), 7), 8)
>>> for (a,b) in reduce(lambda x,y: (x,y), range(9)):
... print a,b
...
((((((0, 1), 2), 3), 4), 5), 6) 7
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: 'int' object is not iterable