Python does not support ++ like other languages because once you do ++/-- it becomes a statement, not an operator. In Python, all the namespace modification is in a statement. That's one of the design decisions. And also because integers are immutable, the only way to 'change' a variable is by re-assigning it.
To get the value of ++/-- you can work with the following way:-
number += 1 and number -= 1
Learn more about Python from an expert. Enroll in our Python Course!