Python doesn't support C-style ++a increment but, to my surprise, it doesn't complain either leading to me being temporarily baffled as to why my loop wasn't working.
Trying a few things (having first initialised with a=0) I find that a++ and a-- produce a syntax error, but ++a doesn't. While --a produces a syntax error in Python 3.3 but not in Python 2.7.
What's going on? Why doesn't ++a give an error? Why does --a not give an error in 2.7 but does give an error in 3.3?
 
     
     
    