Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Proper, readable solution solution in Clear category for Flatten a List by dunpealer
def flat_list(array):
l = []
for e in array:
l.extend(flat_list(e)) if isinstance(e, list) else l.append(e)
return l
Aug. 22, 2015