Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
simple for loop solution in Clear category for Flatten a List by mplichta
def flat_list(array):
new_list = []
for elemet in array:
new_list += flat_list(elemet) if isinstance(elemet, list) else [elemet]
return new_list
March 26, 2018