True, False and combining conditions
Python boolean logic: True and False values, and/or/not with their order, short-circuiting, the in operator and truthy and falsy values.
- The skill
- Combine conditions with and, or and not, and guard risky checks so they never crash.
- You make
- Rules for voting, opening hours and fair online matchmaking.
Premium lesson
£7.99 a month or £59 a year. Cancel any time.
Builds on 09 for loops and range(). Free to try: Python Foundations and the playground.
Passed
You can now
Step 1 of 10
exercise_1.py
You've reached the good stuff.
6 exercises in this lesson, checked as you type. Premium opens every lesson after Foundations, in all four courses.
Python 3.13