New course! Every coder should learn Generative AI!
Try a free lesson0
Please can someone explain why the answer is none?
fruits = ['apple', 'banana', 'cherry'] cars = ['Ford', 'BMW', 'Volvo'] c=fruits.extend(cars) print(c)
1 Answer
+ 8
the extend().methods works inplace and does not return anything, hence None