append list without brackets python

Solutions on MaxInterview for append list without brackets python by the best coders in the world

showing results for - "append list without brackets python"
Marco
08 Sep 2017
1fruits = ['apple', 'banana', 'cherry']
2cars = ['Ford', 'BMW', 'Volvo']
3
4fruits.extend(cars)
5
6print(fruits)
7# ['apple', 'banana', 'cherry', 'Ford', 'BMW', 'Volvo']