Lesson 3 - In a while, crocodile
This lesson revolves around iteration using while loops, offering students a chance to retrieve and apply relevant knowledge. In the first activities, students will practise using list operations in iterative contexts.
Students will be introduced to the similarities between lists and strings, which will be based on what they already know about operations relating to length, membership, and access to individual characters. The final activity requires them to apply these string operations in an iterative context.
This lesson is the third in a six session teaching unit provided by the National Centre for Computing Education.