do...while loops

Dan Parisien dan at eevolved.com
Tue Feb 6 19:34:35 EST 2001


Langa Kentane wrote:

> Why is is it while 1:
> would while 2:
> or    while 3: work?

yes :)

any non-zero value means true, so saying while 1: means 'always'




More information about the Python-list mailing list