1 May 2003 10:44
Re: while statement
Mic Forster <micforster <at> yahoo.com>
2003-05-01 08:44:23 GMT
2003-05-01 08:44:23 GMT
Thanks Sean, that's actually what I had written and my mistake was in the equation. Missed a bracket here and there but she's sweet now. Thanks for the assistance. Mic --- Sean 'Shaleh' Perry <shalehperry <at> attbi.com> wrote: > > and this is repeated until n = N. > > > > I know that the while statement needs to be used > but I > > am unsure of the exact syntax. I am having > problems > > incrementing n by 1 in each iteration. > > > > while n != N: # or maybe n < N > do_stuff > n = n + 1 # or with newer (2.2+) n += 1 > > _______________________________________________ > Tutor maillist - Tutor <at> python.org > http://mail.python.org/mailman/listinfo/tutor __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com _______________________________________________ Tutor maillist - Tutor <at> python.org http://mail.python.org/mailman/listinfo/tutor
RSS Feed