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 HubertDolny
def flat_list(ar):
n=[]
for i in ar:
if type(i) is list: n.extend(flat_list(i))
else: n.append(i)
return n
Nov. 1, 2016