Get startedGet started for free

Choosing when to use integers and floats

Both floats and integers can be interchangeably used in a lot of circumstances. Let's categorize a few good patterns around when to use one vs. the other.

This exercise is part of the course

Data Types in Python

View Course

Hands-on interactive exercise

Turn theory into action with one of our interactive exercises

Start Exercise