Python breaks numbers down into different types, including floats and ints.
When to use
Whenever you need to use numbers, keep the different types in mind.
Python has a couple of different number data types:
floats = decimal numbers
ints = whole integers
Hints & tips
- Use floats when you need exact numbers
- Use ints when you need whole numbers
Lesson notes are only available for subscribers.