Combining Lists Exercise
Question 1 of 4
What's the difference between + and extend() when combining lists?
list1 = [1, 2]
list2 = [3, 4]
result1 = list1 + list2
list1.extend(list2)extend() only works with lists, + works with any iterables
They do exactly the same thing
+ modifies the original list, extend() creates a new list
+ creates a new list, extend() modifies the original list