Track 3 · Lesson 4 of 11
Combining conditions with and, or, not
Join conditions with and, or and not, use short-circuiting to avoid errors, and control precedence with parentheses.
You will be able to
- Combine conditions with and, or and not and predict the result
- Use short-circuit evaluation to skip a check that would crash
- Apply operator precedence (not, then and, then or) and add parentheses for clarity
- Recognise and fix the x == a or b mistake
Included with a Formula Quest membership
It has 4 graded exercises with feedback, hints and solutions. Python Quest is included in Formula Quest memberships that cover Python; membership and billing are managed on Formula Quest.
View Formula Quest memberships
Tracks 1 and 2, the first lesson of every track, the playground and the dataset library are free.