Python Unstlist aplati les listes
def flatten(x):
if isinstance(x, list):
return [a for i in x for a in flatten(i)]
else:
return [x]
Combative Crocodile