generate functionThu, 13 Apr 2023
divide list ['a', 'b', 'c', '1', '2', '3'] into three separate list
def split_list(lst): lst1 = lst[0:2] lst2 = lst[2:4] lst3 = lst[4:] return lst1, lst2, lst3 split_list(['a', 'b', 'c', '1', '2', '3'])
Python
Generate More