I have no idea

Daniel Yoo dyoo at hkn.eecs.berkeley.edu
Mon Mar 12 08:51:47 EST 2001


> In basic you use to be able to do this:
> 10 print "Hello World"
> 20 goto 10

In Python, you can write an infinite loop like this:

###
while 1:
    print 'Hello World'
###

Python follows the 'structured programming' philosophy and doesn't support
arbitrary goto's.  If you've programmed a lot in basic, this will probably
take some getting used to.





More information about the Python-list mailing list