Код: Выделить всё
>>> d = {'year':[{'season':['winter',['spring']]}]}
>>> d['year']['season']['winter']
Traceback (most recent call last):
File "
", line 2, in
d['year']['season']['winter']
~~~~~~~~~^^^^^^^^^^
TypeError: list indices must be integers or slices, not str
Подробнее здесь: https://stackoverflow.com/questions/791 ... m-list-ind