Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
naive 2nd solution in Clear category for Flatten a List by Sim0000
def flat_list(L):
r = []
for i in L:
r += flat_list(i) if isinstance(i, list) else [i]
return r
April 26, 2014