Possible Duplicate:
Behaviour of increment and decrement operators in Python
I'm new to Python, I'm confused about ++ python. I've tried to ++num but num's value is not changed:
>>> a = 1
>>> ++a
1
>>> print a
1
>>> print(++a)
1
Could somebody explain this? If Python support ++, why num has not changed. If it doesn't why can I use ++?