You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
154 B
11 lines
154 B
# test closure with default args
|
|
|
|
def f():
|
|
a = 1
|
|
def bar(b = 10, c = 20):
|
|
print(a + b + c)
|
|
bar()
|
|
bar(2)
|
|
bar(2, 3)
|
|
|
|
print(f())
|
|
|