extend a list python

Solutions on MaxInterview for extend a list python by the best coders in the world

showing results for - "extend a list python"
Lebron
25 Jan 2020
1
2    fruits = ['apple', 'banana', 'cherry']
3
4
5    cars = ['Ford', 'BMW', 'Volvo']
6
7
8    fruits.extend(cars)
9