Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Numeric Types | Data Types
Introduction to Data Analysis in Python
course content

Contenido del Curso

Introduction to Data Analysis in Python

Introduction to Data Analysis in Python

1. Basics
2. Data Types
3. Control Flow
4. Functions and Modules
5. Introduction to NumPy

Numeric Types

Numeric types

TypeUsageExamples
intTypically used for counting1, 2, 6, 10, ...
floatUsed for accurate measurements30.5, 38.9, 10.0006, 60.0
complexComplex numbers have their uses in many applications related to mathematicsx+iy

To check the type of a specific variable, use the function type(variable).

question-icon

Fill in the gaps to make sentences correct, put correct items to the gaps.

a = 5
b = 5.0000003


print('This variable has the integer type:',
)
print('This variable has the floating-point type:',
)
print('Check the type of variable a:',
)
print('Check the type of variable b:',
)

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

¿Todo estuvo claro?

Sección 2. Capítulo 2
We're sorry to hear that something went wrong. What happened?
some-alt