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

Зміст курсу

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

bookNumeric 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:',
)

Натисніть або перетягніть елементи та заповніть пропуски

Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 2. Розділ 2
some-alt