Loading…
The len function calculates a string's character count. String positions start at zero, meaning a string's first character occupies position zero. Consequently, the final character's index is one less than the string's total length, so the final character in a six-letter string holds position five.
You have opened your free Studybank topics for this month.