Activity 01
Pair Programming: Quiz Grader
Pairs write a program that takes a quiz score input and uses if-elif-else to output grades: A for 90+, B for 80-89, etc. They test with various scores, then swap to improve each other's code. End with pairs presenting one edge case.
Design a program that uses selection to provide different responses based on user input.
Facilitation TipDuring Pair Programming: Quiz Grader, circulate and ask each pair to verbalize the condition they are testing before they run the code.
What to look forProvide students with a simple scenario, e.g., 'A program needs to tell a user if they are old enough to drive (17+).'. Ask them to write the Python code using an if-else statement and explain in one sentence why the else part is important.