A syntax question

Mok-Kong Shen mok-kong.shen at t-online.de
Mon Nov 10 06:07:58 EST 2014


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()



More information about the Python-list mailing list