I'm trying to rewrite an old basic program in Python but I have difficulties to manage the "goto" that do not exist in python Is there a solution ?
Asked
Active
Viewed 502 times
1
-
6Translate algorithms, not code. – Ignacio Vazquez-Abrams Dec 08 '17 at 08:30
-
2I don't think you can translate it "word by word". "Gotos" don't exist in the most modern languages. You should translate algorithms to use the benefits of the destination language. – am2 Dec 08 '17 at 08:43
-
Possible duplicate of: https://stackoverflow.com/questions/18863309/the-equivalent-of-a-goto-in-python You will find all explanation regarding why there are no goto's in Python – Olivier Melançon Dec 08 '17 at 15:24
-
Actually, the link I gave was already a duplicate of https://stackoverflow.com/questions/438844/is-there-a-label-goto-in-python – Olivier Melançon Dec 08 '17 at 17:20