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
2 fruits = ['apple', 'banana', 'cherry']
3
4
5 cars = ['Ford', 'BMW', 'Volvo']
6
7
8 fruits.extend(cars)
9