For other types, such as integers, indexing them isn't possible, and it causes a TypeError.

can somebody please explain this with example?

16th Aug 2017, 2:28 PM
1 Answer
hi, indexing is possible only with string not with other data type like int, float etc.. so it throws exception like type error
3rd Sep 2017, 12:57 PM
Nanda Balakrishnan