What is the output?
a = [1, 2] b = a + [3] print(a)
- [1, 2]
- [1, 2, 3]
- [3]
- Error
+ builds a new list, so a is untouched — unlike append, which mutates in place.a = [1, 2] b = a + [3] print(a)
+ builds a new list, so a is untouched — unlike append, which mutates in place.