6 Antworten
+ 7
Just out of curiosity - why would you want to do that? You can define functions, classes and objects first, to be able to call them anytime you want. No need to number the lines and addressing them that way...
+ 7
You exit the loop with 'break' :)
Seriously, I started learning programming some 20 years ago with gwbasic and really know what you mean. But this kind of programming logic is waaay too obsolete now, since at least OOP ;)
+ 6
Even in C, where there is no lambda and no classes, it is bad practice to use goto ^^
+ 3
sorry pal python don't have go-to statement
here reference
https://stackoverflow.com/a/438848/7887883
0
goto is one of the easy way to come out from multiple nested loops, just I need "goto" to reduce code size
- 1
You can't