1#adding two or more elements in a list
2list1 = [1,2,3,4,5]
3list1.extend([6,7,8])
4print(list1)
5#output = [1, 2, 3 ,4 ,5, 6, 7, 8]
1# languages list
2languages = ['French', 'English']
3
4# another list of language
5languages1 = ['Spanish', 'Portuguese']
6
7# appending language1 elements to language
8languages.extend(languages1)
9
10print('Languages List:', languages)
1
2 fruits = ['apple', 'banana', 'cherry']
3
4
5 cars = ['Ford', 'BMW', 'Volvo']
6
7
8 fruits.extend(cars)
9