Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Example of Python Strings with indexing

>>> x = "Follow us on Softhunt.net"
>>> x[0]
'F'
>>> x[1]
'o'
>>> x[6]
' '
>>> x[18]
'u'
>>> x[-1]
't'
>>> x[-25]
'F'
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Example #Python #Strings #indexing
ADD COMMENT
Topic
Name
9+4 =