Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
For In For In solution in Clear category for Flatten a List by shuubun
def flat_list(a):
if isinstance(a, int):
return [a]
return [n for j in a for n in flat_list(j)]
March 27, 2016