Kombinieren Sie die Liste der Liste mit einer Liste Python
import itertools
a = [['a','b'], ['c']]
print(list(itertools.chain.from_iterable(a)))
Sparkling Sable
import itertools
a = [['a','b'], ['c']]
print(list(itertools.chain.from_iterable(a)))
StringName = "seperator".join(ListName)
# Seperator denotes character between each of the joined list elements
# list1 = [1, 2, 3]
# list2 = [4, 5]
# new_list = [1, 2, 3, 4, 5]
new_list = list1.extend(list2)