Question 1
4 marksUsing the full example above, state the output in order and explain why the loop stops after the second value.
Show solution and marking guidance
Indicative answer: The loop prints 5, then 6 (1 mark each). After the second print, currNode becomes None (1). The while condition then becomes false and the loop stops (1).