Iteration over two sequences

Diez B. Roggisch deetsNOSPAM at web.de
Thu Jan 13 07:32:36 EST 2005


My example is somewhat flawed because it assigns a and b the values of the
iteration - so in the end, b is 'c', and only setting a to [1,2] will show
your results.

Use c and d for the variables in the for-statments, and things work as
expected.
-- 
Regards,

Diez B. Roggisch



More information about the Python-list mailing list