Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Flatten a List by gyahun_dash
def flat(array):
for el in array: yield from ([el] if type(el) is int else flat(el))
def flat_list(array): return list(flat(array))
May 3, 2014