Nested loops confusion
nospam at nospam.net
Thu May 11 09:59:50 CEST 2006
Thanks very much for the advice, have tidied it up and tested and seems
to be working as needed. I'm still not sure what was stopping the inner
loop from working earlier - but removing the redundancy in "j=0" and so
on seems to have solved it.
Dennis Lee Bieber wrote:
> If that worked, you've got some weird code -- and it isn't what was
> posted... Zeroing "j" does NOTHING, since the for loop assigns all
> values to it, from 0..n-1
> for loop indices do not need to be pre-initialized.
More information about the Python-list