I notice that a pre-increment/decrement operator can be applied on a variable (like
++count). It compiles, but it does not actually change the value of the variable!
What is the behavior of the pre-increment/decrement operators (++/–) in Python?
Why does Python deviate from the behavior of these operators seen in C/C++?