Answers for "access characters in string python"

0

access characters in string python

>>> s = 'foobar'

>>> s[0]
'f'
>>> s[1]
'o'
>>> s[3]
'b'
>>> len(s)
6
>>> s[len(s)-1]
'r'
Posted by: Guest on June-15-2021

Code answers related to "access characters in string python"

Python Answers by Framework

Browse Popular Code Answers by Language