3 Antworten
+ 2
Ah, in Python there is no goto or labels. This StackOverflow answer has more info
https://stackoverflow.com/a/41768438
You can define a variable outside a function so that it can be used in multiple places, so global yes.
+ 1
goto is typically used to jump to a section of code that we will possibly reuse several times. There is a better way if jumping to a predefined block of code - it's called a function
+ 1
Thx, problem resolved