GOTO w/ Python?

Fredrik Lundh fredrik at
Thu Jun 20 00:13:46 CEST 2002

Angela Williams wrote:
> I'm looking for the equivalent of the GOTO command for Python 2.2.1 running
> on Windows 98. I have programmed very little and am new to Python.

like most modern programming languages, Python doesn't have
a GOTO command.  for a brief explanation of why, and what you
should use instead, check the "branching" chapter in Alan Gauld's
"Learning to Program" tutorial:

(if you're new to programming, I suggest working through the
entire tutorial)

you can find more Python tutorials here:


More information about the Python-list mailing list