In [6]:
num = [1, 2, 3]
for i, n in num:
print n
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-6-e1654ce5a506> in <module>()
1 num = [1, 2, 3]
----> 2 for i, n in num:
3 print n
TypeError: 'int' object is not iterable
In [ ]:
Content source: fzheng/codejam
Similar notebooks: