Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python indexing

>>> word = 'Python'
>>> word[0]  # character in position 0
'P'
>>> word[5]  # character in position 5
'n'
Source by docs.python.org #
 
PREVIOUS NEXT
Tagged: #python #indexing
ADD COMMENT
Topic
Name
6+1 =