1x = [["a","b"], ["c"]]
2
3result = sum(x, [])
4# This combines the lists within the list into a single list
1import itertools
2a = [['a','b'], ['c']]
3print(list(itertools.chain.from_iterable(a)))
1#define lists
2my_list = ["a", "b"]
3other_list = [1, 2]
4
5#extend my_list by adding all the values from other_list into my list
6my_list.extend(other_list)
7
8# output: ['a', 'b', 1, 2]