teaching scope in python

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?
Saw this on SO:

1
2
3
4
5
6
if foo: #{
    print "it's true"
#}
else: #{
    print "it's false!"
#} 


Might actually help until they understand a little better.

I personally can't fathom how, if they understand it the C way, why the can't understand it the Python way. But, everybody learns differently :)
Topic archived. No new replies allowed.