Sorry if this is a dump question; but I was wondering if its possible to skip parts of code in your program/loop back to a previous part (but mostly skip the next section as of right now); I'm currently working on a terminal text based adventure game and it'd be the easiest solution to the issue I'm having with it!
I've tried looking online and people kept telling me to use 'goto' but I cant figure it out
i've tried setting it as a variable
from turtle import goto
print('Hello World')
goto(testgoto)
print('Filler text')
print('Filler text')
print('Filler text')
print('Filler text')
print('Filler text')
print('Filler text')
print('Filler text')
testgoto = print("Hello Programmer")
Skipping to a specific line
from turtle import goto
print('Hello World')
goto(13)
print('Filler text')
print('Filler text')
print('Filler text')
print('Filler text')
print('Filler text')
print('Filler text')
print('Filler text')
print("Hello Programmer")
Any help would be greatly apricated thank you!