circuitpython/tests/basics/closure-defargs.py

9 lines
96 B
Python
Raw Normal View History

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