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!
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.
I suppose it could be a topic of interest in the process of coding. Thank you very much for your answer!
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.