scope of variables

Gary Wessle phddas at yahoo.com
Wed May 3 17:02:43 EDT 2006


Hi

is the code below correct?

b = 3
def adding(a)
    print a + b

it seams not to see the up-level scope where b is defined.

thanks



More information about the Python-list mailing list