Lesson 3: Operators & Expressions

1. Arithmetic Operators

Examples:

5 + 3 = 8
10 / 4 = 2.5
10 // 4 = 2
10 % 4 = 2
2 ** 3 = 8

Exercise 1

Compute:

17 // 5 = 
17 % 5 = 
3 ** 4 = 

2. Comparison & Logical Operators

Comparison:

Logical:

Exercise 2

Which comparisons are True?

Exercise 3

What is the result of: not (5 > 3 and 2 < 1)?
← Previous Lesson (2) Next Lesson (4) →