2021 02 09 Python List Indices Must Be Integer
We can solve the error “typeerror: list indices must be integers or slices, not str” by making sure that we access items in a list using index numbers, not strings. The problem in our code is that we’re trying to access “level” in our list of lods: