micropython/tests/basics/closure-defargs.py

9 lines
96 B
Python

def f():
a = 1
def bar(b = 10, c = 20):
print(a + b + c)
bar()
print(f())