Py

Numbers & Math

Module 2 of 14, Beginner
🔢

Numbers & Math

Integers, floats, operators, rounding and the math module.

0 of 5 lessons complete

5 lessons, 43 min

Start module

Lessons

1

Integers and floats

Python's two kinds of numbers and the basic arithmetic operators.

8 min
2

Floor division, remainder and powers

Use //, % and ** to split things up and raise numbers to powers.

9 min
3

Order of operations

How Python decides what to calculate first, plus handy shortcuts like +=.

8 min
4

Rounding and float surprises

round(), int(), abs(), min() and max(), and why 0.1 + 0.2 isn't exactly 0.3.

9 min
5

The math module

Import extra tools: square roots, pi, floor and ceil.

9 min
🔤
Next module

Working with Text