How to Fix TypeError: list indices must be integers or slices, not ...

How to Fix TypeError: list indices must be integers or slices, not ...