Activity 01
Think-Pair-Share: Mutable vs. Immutable Scenarios
Pairs are given a list of data needs (e.g., 'Daily temperatures', 'Days of the week', 'User passwords'). They must decide whether a list or a tuple is better for each and explain their reasoning based on whether the data should ever change.
Explain how negative indexing can be used to access characters from the end of a string.
Facilitation TipDuring the 'Think-Pair-Share' activity, move between groups to listen for correct examples of mutable and immutable scenarios, gently steering those using lists for constant data toward the concept of data integrity.
What to look forPresent students with a sample string, e.g., 'Artificial Intelligence'. Ask them to write down the output of the following operations: string[0], string[-1], string[2:5], string[::2]. Review responses to gauge understanding of basic indexing and slicing.