 Générer du code Python pour aplatir une liste à deux dimensions
liste1 = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
 def flatten_two_dimensional_list(list1):\n flattened_list = [item for sublist in list1 for item in sublist]\n return flattened_list\n\nlist1_flattened = flatten_two_dimensional_list(list1)\nprint(list1_flattened) # [1, 2, 3, 4, 5 , 6, 7, 8, 9]