so i have a couple of friends that want to learn programming, and im teaching them python, because of its simplicity. they are learning it great, but im having trouble teaching scope. they get it when i do it c style with brackets, but when i try to translate that to tabbing in python it results in this:
1 2 3 4
def myfunc():
x = 4
print x
y = x
could someone tell me how to explain scope in python then so that they could get it?