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 dasich12
def f(a):
c=[]
for i in a:
if type(i)==int:
c+=[i]
else:
c+=f(i)
return c
flat_list=f
Feb. 18, 2016