0
goto: is there a way to get python to go to a specific line and start executing code on that line? say I'm at the end of the script and want to JUMP to a specific line
3 Antworten
+ 4
Create a function, then you can "jump" to that code whenever you need to.
0
If you want to repeat the execution of a code, put it in a loop.
0
def repeatFunction():
# here goes the part that you want to repeat.
def main():
while(condition here):
repeatFunction()
main()