device one list into 2 list python

Solutions on MaxInterview for device one list into 2 list python by the best coders in the world

showing results for - "device one list into 2 list python"
Luciana
17 Feb 2019
1def split_list(a_list):
2    half = len(a_list)//2
3    return a_list[:half], a_list[half:]
4
5A = [1,2,3,4,5,6]
6B, C = split_list(A)
7
similar questions
queries leading to this page
device one list into 2 list python