Data Types: Numeric

Integers: all positive and negative whole numbers, including 0

In Python, integer literals are written without commas and a leading negative sign indicates a negative value. A real computer’s memory is limited, so the largest positive and negative integers are also limited. The most common implementation of the int data in many programming languages includes integers in between -2,147,483,648 and 2,147,483,647.

Float: real numbers using either decimal or scientific notation

Python uses floating-point numbers to represent real numbers. Python’s float type range from approximately -10³⁰⁸ to 10³⁰⁸ and have 16 digits of precision.

Leave a comment