ALAPPORT LISTE EN PYTHON en utilisant un aplatissement peu profond

List = [[0,1,2],[3,4,5]]
shallow_flatten_list = []
for nested_list in List:
    for item in nested_list:
        shallow_flatten_list.append(item)
print(shallow_flatten_list)
Outrageous Ostrich