Step 1 of 6

Step 1 · Read and run

Asking questions about values

Programs make decisions by asking questions with only two answers: True or False. You met True and False in Chapter 2 (they're bools). A comparison is how you get one.

Symbol Means
> greater than
< less than
== equal to (two equals signs)
!= not equal to

Run it.

Run the program to carry on.
compare.py

Output

Press Run to see what your program prints.