Indices in Python-What's the purpose?


#1

Hello,
I’m wondering what purpose do indices serve in Python? From what I’ve learned in the Access by Index page (fourth section from lesson linked below), I feel as if it’s an inconvenient tool that forces people to track letters in their strings and is not used for anything much. I’d be very grateful if anyone would be willing to spend their time to answer my question. Thank you so much in advanced!

Strings and Console Output


#2

Would it not be of some interest for some purpose to know the position of a letter in a string? Which position in the alphabet is the letter m? That question must come up a few times. Ditto for the position in a list.


#3

I suppose it could be a topic of interest in the process of coding. Thank you very much for your answer!