Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python slicing a list

finishers = ['sam', 'bob', 'ada', 'bea']
first_two = finishers[:2]
Source by nostarch.com #
 
PREVIOUS NEXT
Tagged: #python #slicing #list
ADD COMMENT
Topic
Name
9+9 =