Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Chain solution in Clear category for Flatten a List by jani
import itertools
f=lambda a:[a]if isinstance(a,int)else itertools.chain(*(f(i) for i in a))
def flat_list(a):return list(f(a))
July 20, 2015