circuitpython/tests/bytecode/mp-tests/closure2.py

8 lines
109 B
Python
Raw Normal View History

# test closing over an argument
def f(x):
y = 2 * x
def g(z):
return x + y + z
return g