[Tutor] Unexpected iterator

Sander Sweers sander.sweers at gmail.com
Thu Nov 12 12:25:47 CET 2009


2009/11/12 Jeff R. Allen <jra at nella.org>:
> Then I tried this to (maybe) set both a and b to 0:
>
>>>> a, b = 0
> Traceback (most recent call last):
>  File "<stdin>", line 1, in <module>
> TypeError: 'int' object is not iterable

I think you are looking for.

>>> a = b = c = 300

Greets
Sander


More information about the Tutor mailing list