Answers for "python does len start at 0"

0

python does len start at 0

Use the len(s) function to get the length of a string, 
and use square brackets to access individual chars inside the string. 
The chars are numbered starting with 0, and running up to length-1.
Posted by: Guest on June-28-2020

Python Answers by Framework

Browse Popular Code Answers by Language