Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Numerical Data Type in General | Getting Familiar With Numbers in Python
Data Types in Python
course content

Course Content

Data Types in Python

Data Types in Python

1. Getting Familiar With Numbers in Python
2. True or False?
3. Strings
4. Bring All the Topics Together

bookNumerical Data Type in General

Before anything else, it's essential to familiarize ourselves with numeric data types, which are typically the ones we use the most.

Numeric data types typically include two primary built-in categories: integers (int) and floating-point numbers (float). To clarify, 'built-in' indicates that Python can handle them from the start, eliminating the need for us to define them in advance. So, you can simply use int/ float in Python without any additional specifications.

Integer represents the whole numbers you commonly encounter in your daily life, such as 1, 2, 45, or 456566.

On the other hand, floating-point numbers include values like pi (3.14159265359) and Euler's number (2.71828).

question-icon

Match the numbers with their type.

Integer Number
Floating-point Number

Click or drag`n`drop items and fill in the blanks

Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 1. Chapter 1
some-alt