In Python how can we increment or decrement an index within the square braces of a list?
For instance, in Java the following code
array[i] = value
i--
can be written as
array[i--]
In Python, how can we implement it?
list[i--]
is not working
I am currently using
list[i] = value
i -= 1
Please suggest a concise way of implementing this step.