Hi again, I just had a really quick question. Is there any kind of goto command in Python like there is in Java?
Rete
0
Newbie Poster
Recommended Answers
Jump to PostPython has no goto statement. In C as in Java a goto should only be used in special cases, like breaking out of a series of nested loops. Here is a Python workaround ...
# setting a binary flag will work, similar to a goto in C …
All 3 Replies
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
Gribouillis
1,391
Programming Explorer
Team Colleague
scru
909
Posting Virtuoso
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.