Persistent failure of 'break' statement ( novice )

pdlemper at pdlemper at
Sun Jun 14 02:20:17 CEST 2009

Thanks Mark & Rhodri.  Neither works.

I'm using Notepad2 as editor.  Don't use the tab. Each space
counted with spacebar & recounted.  Rewrote the block from
scratch as new script and eliminated the print line in the loop.
Now no error message, but it will go on forever despite repeatedly
entering 0.  Have to get out with ctrl-c .     

while True :
    num = int(input())
    if num == 0 :


           Frusting: I'm missing something fundamental. Dave WB3DWE

More information about the Python-list mailing list