Exam-style question
Try this first
What is the result of [2, 4] + [6] in Python?.
- A.[2, 4, 6]
- B.[6, 2, 4]
- C.[2, 4, [6]]
- D.6
Model answer
What a good answer should say
- [2, 4, 6]
Explanation
Why this works
The + operator concatenates the two lists, so the item 6 is placed after the existing elements.
Common mistake
No common mistake is linked to this question yet.
