3 lines
110 B
Python
3 lines
110 B
Python
def flatten(l):
|
|
return flatten(l[0]) + (flatten(l[1:]) if len(l) > 1 else []) if type(l) is list else [l]
|