Answers for "how to take first half of list python"

0

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.
Posted by: Guest on August-11-2020

Code answers related to "how to take first half of list python"

Python Answers by Framework

Browse Popular Code Answers by Language