I am a beginner in python and I am using Python 3.5. The python console complains invalid syntax for the below statement:
a = 5
print(a++)
But print(++a)
works fine. Can anyone help me understand the difference?
Btw, it seems that print(a+=1)
also doesn't work.
Thanks!