Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
122 characters solution in Clear category for Flatten a List by Antibyte
def flat_list(a):
f=[]
for i in a:
f.extend(flat_list(i)) if isinstance(i, list) else f.append(i)
return f
Feb. 22, 2019
Comments: