how to take first half of list python

Solutions on MaxInterview for how to take first half of list python by the best coders in the world

showing results for - "how to take first half of list python"
Santino
07 Jan 2020
1Use the slicing syntax list[:middle_index] to get the first half of the list 
2and list[middle_index:] to get the second half of the list.