Adding to Lists Quiz
Question 1 of 80% Complete
What is the result of this code?
nums = [1, 2]
nums += [3, 4]
print(nums)1, 2, 3, 4
1, 2, 3, 4
[[1, 2], 3, 4]
An error occurs
What is the result of this code?
nums = [1, 2]
nums += [3, 4]
print(nums)1, 2, 3, 4
1, 2, 3, 4
[[1, 2], 3, 4]
An error occurs