1

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 ?

Psytho
  • 3,313
  • 2
  • 19
  • 27
Patrice
  • 209
  • 1
  • 4
  • 15
  • 6
    Translate algorithms, not code. – Ignacio Vazquez-Abrams Dec 08 '17 at 08:30
  • 2
    I 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

0 Answers0