Cody Bable

Generation

generate functionThu, 13 Apr 2023

divide a list into three separate list

def divide(list): return list[0:2], list[2:4], list[4:] divide([1, 2, 3, 4, 5, 6])

Questions about programming?Chat with your personal AI assistant