Код: Выделить всё
x = [(1,2),(3,4),(5,6)]
print(x[0])
(1,2)
print(x[0,1])
TypeError: list indices must be integers or slices, not tuple
Подробнее здесь: https://stackoverflow.com/questions/786 ... s-not-tupl
Код: Выделить всё
x = [(1,2),(3,4),(5,6)]
print(x[0])
(1,2)
print(x[0,1])
TypeError: list indices must be integers or slices, not tuple