Activity 01
Pair Programming: Star Patterns
Pairs start with a 'for' loop using range(6) to print rows of stars, adding a nested loop for triangle shapes. They modify to print numbers or letters, test outputs, and explain changes to the class. Swap roles midway for balanced participation.
Explain scenarios where a 'for' loop is the most appropriate iteration construct.
Facilitation TipDuring Pair Programming: Star Patterns, circulate and ask each pair to verbally explain their loop’s start, stop, and step before they run the code.
What to look forPresent students with a simple list of numbers (e.g., [5, 10, 15, 20]). Ask them to write a 'for' loop that prints each number multiplied by 2. Observe their syntax and understanding of iteration.