generate functionThu, 13 Apr 2023
divide this ['a', 'b', 'c', '1', '2', '3','4', '5', '6'] evenly into three separate list
def div_list(lst): return [lst[0:3], lst[3:6], lst[6::]] div_list(['a', 'b', 'c', '1', '2', '3','4', '5', '6'])
Python
Generate More