Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

String Slices

  s = 'Hello'
  #    01234    ## Showing the index numbers for the 'Hello'
  s[1:4]  ## 'ell' -- starting at 1, up to but not including 4
  s[0:2]  ## 'He'
Source by codingbat.com #
 
PREVIOUS NEXT
Tagged: #String #Slices
ADD COMMENT
Topic
Name
9+5 =