Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for Flatten a List by Oleg_Novikov
def flat_list(a):
r=[]
for i in a:
if type(i)!= list: r.append(i)
else: r += flat_list(i)
return r
May 8, 2016