Write and trace if/else in Python and AP pseudocode
Predict which branch executes for given variable values
Identify errors that cause the wrong branch to run
Translate between Python and AP pseudocode conditional syntax
📈
Exam Impact: Conditionals are the foundation of algorithm design. They appear in nearly every BI3 MCQ and in Create Task rubric criteria.
💡 Why This Matters
A thermostat is a conditional: IF temperature < 68, turn on heater, ELSE turn off. Every decision-making program runs on this same two-branch structure.
If and If/Else
A conditional executes code only when a condition is true. The else branch runs when the condition is false.
grade = 74
if grade >= 70:
print("Pass")
else:
print("Fail")
Whether you're a student, parent, or teacher — I'd love to hear from you.
Just want free AP CS resources?
Enter your email below and check the subscribe box — no message needed.
Students get daily practice questions and study tips. Teachers get curriculum resources and teaching strategies.
Typically responds within 24 hours
✓
Message Sent!
Thanks for reaching out. I'll get back to you within 24 hours.