Commit 0a0cdfd7 authored by Tom Niget's avatar Tom Niget

Scopes work? I think – handles nested decls in functions

parent 4aa55569
...@@ -7,11 +7,16 @@ test = (2 + 3) * 4 ...@@ -7,11 +7,16 @@ test = (2 + 3) * 4
glob = 5 glob = 5
def g(): def g():
a = 8
if True: if True:
b = 9
if True: if True:
c = 10
if True: if True:
x = 5 d = a + b + c
print(x) if True:
e = d + 1
print(e)
def f(x): def f(x):
return x + 1 return x + 1
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment