I have no idea

Chris Withers chrisw at nipltd.com
Mon Mar 12 07:38:28 EST 2001


Brendhan Horne wrote:
> 
> In basic you use to be able to do this:
> 10 print "Hello World"
> 20 goto 10
> Run
> 
> If you did that it would run up the screen in an endless loop until you hit
> the ESC key. If you added   ; it would cover the whole screen. How do you
> write the equivalent in python?

while 1:
   print "Hello World"

or 

while 1:
   print "Hello World",

Replace ESC with Ctrl-C :-)

cheers,

Chris




More information about the Python-list mailing list