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 plutasnyy
l=[]
def r(p):
for i in p:
l.append(i) if type(i)==int else r(i)
def flat_list(a):
l.clear()
r(a)
return l
Oct. 28, 2016