On Mon, 10 Nov 2014 12:07:58 +0100, Mok-Kong Shen wrote: > I don't understand the following phenomenon. Could someone kindly > explain it? Thanks in advance. > > M. K. Shen > > ------------------------------------------------- > > count=5 > > def test(): > print(count) > if count==5: > count+=0 ### Error message if this line is active, otherwise ok. > print(count) > return > > test() My crystal ball is currently in for repair and is not expected back in the foreseeable future.
What result are you getting that you don't understand & what do you expect? What is the error message you get? Post the full traceback -- The POP server is out of Coke -- https://mail.python.org/mailman/listinfo/python-list