1l = ['aaa', 'bbb', 'ccc']
2
3s = ''.join(l)
4print(s)
5# aaabbbccc
6
7s = ','.join(l)
8print(s)
9# aaa,bbb,ccc
10
11s = '-'.join(l)
12print(s)
13# aaa-bbb-ccc
14
15s = '\n'.join(l)
16print(s)
17# aaa
18# bbb
19# ccc
20
1list1 = ["a", "b" , "c"]
2list2 = [1, 2, 3]
3
4list1.extend(list2)
5print(list1)
6
1listone = [1,2,3]
2listtwo = [4,5,6]
3mergedlist = []
4mergedlist.extend(listone)
5mergedlist.extend(listtwo)
1first_list = ["1", "2"]
2second_list = ["3", "4"]
3
4# Multiple ways to do this:
5first_list += second_list
6first_list = first_list + second_list
7first_list.extend(second_list)
8
1# Makes list1 longer by appending the elements of list2 at the end.
2list1.extend(list2)
3