Files
ChocoPy/pa1-tests/core/def_func_nonlocal.py
T
2021-03-12 09:39:57 -05:00

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)