I didn't find a solution in "similar" questions. I like to call a function in a function in a loop. the solution will not be to set "parameters" in front of the function (def inner) I try to call. I like to call the "def inner" in the end of the loop. Thanks!
def meta1():
def inner():
print("hello inner2")
parameters = {"Name": "XYZ","max_time": 35}
return parameters
def meta2():
def inner():
print("hello inner2")
parameters = {"Name": "XXX","max_time": 25}
return parameters
the loop over the functions
for func in [meta1, meta2]:
x = func()
print(x['Name'])
print("here is some other code between. The solution is not to change the functions!")
print(func(inner())) #here i need some help, thanks
innerfunctions defined