[EMAIL PROTECTED] wrote:
> Call me crazy, but be careful when programming python in different text
> editors and in general, ie cutting and pasting, tabing and spacing.
> Loops can look fine and not work (try moving around test print
> statements for iterators), in this case try re-tabing your inde
>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.
Call me crazy, but be careful when programming python in different text
editors and in general, ie cutting and pasting, tabing and spacing.
Loops ca
On 11/05/2006 5:59 PM, Matthew Graham wrote:
> Thanks very much for the advice, have tidied it up and tested and seems
> to be working as needed.
Seems to be working? Consider where you have the expression x^2 + y^2
... I'd like to bet that you mean "x squared" etc, not "x exclusive-or
2" etc.
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.
Matt
Dennis Lee Bieber wrote:
> If that wor
Oops, I forget to reset the j after the inner loop. Always manage to
work these things out just after asking for help! ;-)
Matthew Graham wrote:
> Hi,
>
> I expect this is very obvious for anyone who knows what they're doing -
> but I don't understand what's the problem with the following code
Hi,
I expect this is very obvious for anyone who knows what they're doing -
but I don't understand what's the problem with the following code. I
was intending that the program cycle through all i and j (ie. all
possible (i,j) coordinates, but the output when I run the program shows
me up to