Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to take first half of list python

Use the slicing syntax list[:middle_index] to get the first half of the list 
and list[middle_index:] to get the second half of the list.
 
PREVIOUS NEXT
Tagged: #list #python
ADD COMMENT
Topic
Name
4+3 =