Daftar perataan dalam python menggunakan perataan dangkal
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