Question 11/17
intermediate
Select one answer

What is the difference between append() and extend() for lists?

They are exactly the same
append adds a single element, extend adds all elements from an iterable
extend adds a single element, append adds multiple elements
append returns a new list, extend modifies in place

Premium Question

Upgrade to unlock this question and 300+ more interview prep MCQs.