Practice

Let's practice with a few examples so you can see what kinds of answers you get.

Type each of these expressions at the prompt and hit the Enter key after each one.

Go back to the previous page if you need some help to remember what each of the comparison operators mean.

>>> 5 < 4 + 3

>>> 12 + 1 >= 12

>>> 16 * 2 == 32

>>> 16 != 16

>>> 5 >= 6

Take your time, and try a few other expressions if you feel like it.

What happens if you use floats? Does it make a difference?