Activity 01
Pair Programming: Scenario Conditions
Pairs discuss real-life scenarios, such as login validation or grade checks. One partner writes the conditional expression using relational and logical operators; the other tests it in Python and suggests improvements. Switch roles after five tests.
Explain how relational operators are used to compare values.
Facilitation TipDuring Pair Programming: Scenario Conditions, circulate and ask guiding questions like, ‘What value does this variable hold right now?’ to keep partners focused on tracing execution.
What to look forPresent students with several code snippets containing conditional statements. Ask them to predict the output (True or False) for each snippet and explain their reasoning, focusing on operator precedence.