Answers for "append list without brackets python"

3

append list without brackets python

fruits = ['apple', 'banana', 'cherry']
cars = ['Ford', 'BMW', 'Volvo']

fruits.extend(cars)

print(fruits)
# ['apple', 'banana', 'cherry', 'Ford', 'BMW', 'Volvo']
Posted by: Guest on April-15-2021

Code answers related to "append list without brackets python"

Python Answers by Framework

Browse Popular Code Answers by Language