So I can do a Select Case in python with
if integer == 1:
case0()
elif integer == 2:
case2()
elif integer == 3:
case3()
....
elif integer == N:
caseN()
Some times I use a list using the index as a selector.
selectCase = [case0(),case1(),case3(),...,caseN()] [N]
But this makes that each item in the list to be processed before selected right?
So I was wondering if there other ways to do this without spanning so much vertically to control what code is executed. Are there maybe ways to jump to parts of the code? Maybe I don't want to solve a function but just skip some lines.
Thanks