Is it possible to make a two functions with seperate for-loops but that the second function gets what the first one did? I have a very simple example:
a = [1,2,3,4]
def func():
for i in a:
if i == 1:
continue
def func2():
func()
for i in a:
print(i)
print(func2())
The problem with the second function is that it doesnt "get" what the first function does. How could I fix this? I want the second function to get the first one so that I can continue on with statements.