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 tokiojapan55
def flat_list(array):
r=[]
for i in array:
if type(i) is list:
r += flat_list(i)
else:
r.append(i)
return r
June 22, 2020