Another stupid newbie question

Georg Brandl g.brandl-nospam at gmx.net
Fri Feb 17 14:59:29 EST 2006


Byte wrote:
> Great, thanks all. Now, how come
> 
>         if x == mx: print x
>                     break
> 
> Dosnt work?

If you have a suite with more than one line, you must put it on a new line.

if x == mx:
    print x
    break

Perhaps it would be good for you to work through the Python Tutorial.

Georg



More information about the Python-list mailing list