Ask Question
17 January, 11:10

Python string indexerror: list index out of range

+5
Answers (1)
  1. 17 January, 13:05
    0
    A string is actually an array of characters. Because it's an array, the characters can be addressed by index. Arrays in Python are zero indexed (the first element is index 0, the second is index 1, etc.). One thing about zero based indexing that bites people is that the last indice is len () - 1. Otherwise you get a "List Index Out of Range" error.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Python string indexerror: list index out of range ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers