In <[EMAIL PROTECTED]>, Gary Wessle wrote: > is the code below correct?
No... > b = 3 > def adding(a) ...a colon is missing at the end of the above line. > print a + b > > it seams not to see the up-level scope where b is defined. It does. And you could easily find out yourself by just trying that code. Running this:: b = 3 def adding(a): print a + b adding(5) Puts out 8 as expected. Ciao, Marc 'BlackJack' Rintsch -- http://mail.python.org/mailman/listinfo/python-list