While learning scopes in python, I come across the below simple code. My doubt is how can I pass the parameter to outer_var and inner_var in the function.
def outerfunc(outer_var):
def innerfunc(inner_var):
return outer_var * inner_var
return innerfunc