I have this code:
for i in range(n):
for v in range (m):
# code
try:
# more code
except IndexError:
os.system('python "Example.py"')
os.system('python "Example.py"') allows me to reinitialize the entire code, but what I really want to do is to go back right before the for v in range(m): part and start that loop again.
How can I do this? Is there any other way to do that instead of adding a function? If not, how can I code that function?