When we try to do increment or decrement, we typically do that on an integer
Like as follows:
b++
But when we deal with Python, so we see that integers are immutable in Python. That means you can't change them.
b = 5
a = 5
id(a)
id(b)
a is b
Here, a and b above are actually the same objects. So if you increment a, you would also increment b. That's not what you want. So you have to reassign it as follows:-
b = b + 1
Or
b += 1
The above codes will reassign b to b+1. That is not an increment operator, because it does not increment b, it reassigns it.
So here, Python behaves differently, because Python is a high-level dynamic language, where increments don't make sense, and also are not as necessary as in C, where you use them every time you have a loop.
To know more about this you can have a look at the following video tutorial:-