Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Simple Recursion and one-line if else solution in Clear category for Flatten a List by mlb00
def flat_list(a):
x = []
for i in a:
x += [i] if type(i) == int else flat_list(i)
return x
June 18, 2015