How do you go about starting the next i without using continue or break?
def function_in_main():
if #something happens:
#start new next iteration for the loop in the main function
def main():
n = 1
for i in range(len(alist)):
print ('step ', n)
function_in_main()
n += 1
main()
Output should look somewhat like:
step 1
#if or until something happens
step 2
etc
something happens
is not met? – Hyperboreus Apr 7 at 19:59something happens
is not met? – Hyperboreus Apr 7 at 20:11