Answers for "device one list into 2 list python"

0

device one list into 2 list python

def split_list(a_list):
    half = len(a_list)//2
    return a_list[:half], a_list[half:]

A = [1,2,3,4,5,6]
B, C = split_list(A)
Posted by: Guest on July-31-2021

Code answers related to "device one list into 2 list python"

Python Answers by Framework

Browse Popular Code Answers by Language