Python Introducing Lists Meet Lists Review Indexing

aditya verma
aditya verma
1,853 Points

Calling more than 1 element through index?

I tried calling more than 1 element example list[1,2]. It gave the following error

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

How do i call more than 1 element at a time?

1 Answer

This from stack overflow has various solutions