Operators

Module 2 · Operators · Lesson 4 of 4

Quiz

Five questions on operators, division rules and precedence. Predict each answer before you pick — then see if Python agrees.

1

What does this print?

print(7 // 2)
2

What is the result?

print(4 / 2)
3

What's the remainder?

print(14 % 4)
4

Mind the order of operations:

print(2 + 3 * 4)
5

** binds right to left — what's this?

print(2 ** 2 ** 3)

That's operators done. You can now turn values into expressions and predict what they evaluate to — the groundwork for variables and the decisions your programs will start making.