Lesson 08: Booleans and Comparisons

A comparison gives True or False. Here, the question is “is this age 10 or older?” Change the age and run again.

Loading Python… this can take a few seconds the first time. Please wait — the Run button will become available when Python is ready.

Try this: Change the age to 8 and press Run again — both answers become False. Try 15: the first stays True and the second becomes True.

The code that runs



Output

Press Run to see the output here.