divide list ['a', 'b', 'c', '1', '2', '3'] into three separate list
def divide(list): list_1 = [] list_2 = [] list_3 = [] for element in list: if element.isalpha(): list_1.append(element) elif element.isnumeric(): list_2.append(element) else: list_3.append(element) return list_1, list_2, list_1