Locked lesson.
About this lesson
What's the difference between a floating point number and an integer?
Exercise files
Download this lesson’s related exercise files.
Numbers.docx60.1 KB Numbers - Solution.docx
58.9 KB
Quick reference
Numbers
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.
Instructions
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.