Error in compiling | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

Error in compiling

TypeError: list indices must be integers or slices, not tuple

24th Aug 2016, 12:00 PM
Lunu'anaki
Lunu'anaki - avatar
1 Answer
0
seems that you wrote something like that: list[1, 2] and python recognises 2 numbers separated with comma as tuple, while list index is integer.
24th Aug 2016, 2:04 PM
Demeth
Demeth - avatar