Ask Question
3 November, 20:46

Python string indexerror: list index out of range

+5
Answers (1)
  1. 3 November, 21:07
    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?
Find an answer to your question 👍 “Python string indexerror: list index out of range ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers