generate functionThu, 13 Apr 2023
divide list ['a', 'b', 'c', '1', '2', '3'] into three separate list
def divide(l): return [l[: len(l)//3]], [l[len(l)//3 : 2 * len(l)//3]], [l[2 * len(l)//3 :]] divide(['a', 'b', 'c', 'd', 'e', 'f'])
Python
Generate More