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 twilyght
def flat_list(a):
return [x for e in a for x in list(flat_list(e) if type(e) == list else [e])]
May 11, 2020