def outer_func(x, y):
a = x * 2
b = y * 2
c = (x + y) * 100
def inner_func():
print(f"{x=}, {y=} from outer_func")
print(f"{a=}, {b=}, {c=} from outer_func")
z = a + b + c
print(f"{z=} from inner_func")
return inner_func
new_function = outer_func(3, 7)
new_function()
# x=3, y=7 from outer_func
# a=6, b=14, c=1000 from outer_func
# z=1020 from inner_func