OnlinePython

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)