Python - A better way for mylist[2][1][3] = mylist[2][1][3] + 1 : I have the following code:


    mylist[2][1][3] = mylist[2][1][3] + 1

`mylist` is a list which contains numbers, and I want to add 1 to a specific number within that list.

To change the number, however, I need to type `mylist[2][1][3]` multiple times, once on both sides of the `=`

Is there a better way to write this code, since it makes it more unreadable once you have different variable names

Current code:

    myDataID7[myDataID5[3][6]][myDataID3][7][4][1]] = myDataID7[myDataID5[3][6]][myDataID3][7][4][1]] + 1

Ideal code:

    something = myDataID7[myDataID5[3][6]][myDataID3][7][4][1]]
    something = something + 1
