> 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.

Yes except for the missing : at the end of the "def" line.

Rob

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to