Numbers

Let’s learn about the numeric data type in Python.

Python has two basic number types—integer and float. For example, 22 is an integer, while 2.32.3 is a floating-point number because it has a decimal attached to it.

Get hands-on with 1200+ tech skills courses.