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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
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.