187k views
7 votes
In Python, the first character in a string has an index position of one.

A: True

B: False

User TyMarc
by
7.0k points

1 Answer

6 votes

False.

In python all strings start with an index of zero and end with an index of len(string)-1. This means that a 5 letter long word will start at 0 and end at 4.

User Simon Josef Kok
by
7.4k points