Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Function Recursion solution in Clear category for Flatten a List by Stensen
def flat_list(a):
flatten = []
if isinstance(a, int): flatten.append(a)
if isinstance(a, list):
for i in a: flatten+=flat_list(i)
return flatten
Sept. 24, 2020