Is there a label/goto in Python?

user46646 picture user46646 · Jan 13, 2009 · Viewed 462.2k times · Source

Is there a goto or any equivalent in Python to be able to jump to a specific line of code?

Answer

unwind picture unwind · Jan 13, 2009

No, Python does not support labels and goto, if that is what you're after. It's a (highly) structured programming language.