12 lines
162 B
Python
12 lines
162 B
Python
|
|
def foo(x:int) -> bool:
|
|
a:int = 0
|
|
b:int = 1
|
|
def bar(y: int) -> int:
|
|
nonlocal a
|
|
a = 2
|
|
return y
|
|
return bar(x) > a
|
|
|
|
foo(1)
|