combiner la liste des listes Python
x = [["a","b"], ["c"]]
result = sum(x, [])
# This combines the lists within the list into a single list
Troubled Thrush
x = [["a","b"], ["c"]]
result = sum(x, [])
# This combines the lists within the list into a single list
listone = [1,2,3]
listtwo = [4,5,6]
joinedlist = listone + listtwo
listone = [1, 2, 3]
listtwo = [4, 5, 6]
joinedlist = listone + listtwo
# list1 = [1, 2, 3]
# list2 = [4, 5]
# new_list = [1, 2, 3, 4, 5]
new_list = list1.extend(list2)