[Python-Dev] re: list comprehension / pop quiz
Ka-Ping Yee
pingster@ilm.com
Tue, 11 Jul 2000 14:31:24 -0700 (PDT)
On Tue, 11 Jul 2000, Guido van Rossum wrote:
> What do you think the following code would print?
>
> for i in (10, 20, 30); j in (1, 2, 3):
> print i+j
[...]
> I'm afraid the answer will be the same, if these are again numerical
> analysts -- these people live by nested DO loops. :-(
What do you think the answer would be for
for i; j in (10, 20, 30); (1, 2, 3):
print i+j
? Would you consider posing this question?
-- ?!ng