Cody Bable

Generation

generate functionThu, 13 Apr 2023

divide list ['a', 'b', 'c', '1', '2', '3'] into three separate list

def divide(a_list): return a_list[:3], a_list[3:6], a_list[6:] divide(['a', 'b', 'c', '1', '2', '3'])

Questions about programming?Chat with your personal AI assistant