Exam-style question
Try this first
What is the final value of total after this Python 3 code executes? total = 2 total = total + 3 total = total * 2.
- A.5
- B.7
- C.10
- D.12
Model answer
What a good answer should say
- 10
Explanation
Why this works
The statements execute in sequence. First total becomes 5, then it becomes 10.
Common mistake
No common mistake is linked to this question yet.
