Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

string slicing python

arr[start:stop]         # items start through stop-1
arr[start:]             # items start through the rest of the array
arr[:stop]              # items from the beginning through stop-1
arr[:]                  # a copy of the whole array
arr[start:stop:step]    # start through not past stop, by step
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #string #slicing #python
ADD COMMENT
Topic
Name
4+8 =