Activity 01
Grade Calculator
Students write an if-else programme to assign grades based on marks input. They test with various scores and discuss edge cases like negative marks. This builds decision logic skills.
Justify the use of an if-else statement to handle alternative outcomes.
Facilitation TipFor Grade Calculator, ask students to first sketch their logic on paper before coding to avoid jumping straight to syntactical errors.
What to look forPresent students with a Python code snippet containing an if-else statement and ask them to predict the output for two different input values. For example: 'Given the code: `x = 10; if x > 5: print('A') else: print('B')`, what is the output if x is 10? What if x is 3?'