Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Numbers | Introduction to Python 1/2
Introduction to Python for Data Analysis
course content

Course Content

Introduction to Python for Data Analysis

Introduction to Python for Data Analysis

1. Introduction to Python 1/2
2. Introduction to Python 2/2
3. Explore Dataset
4. Becoming an Analyst

bookLearn Numbers

Let's talk about numbers!

Type of NumberUsageExampleNumbers ExampleSyntax in Python
IntegerWe use integer numbers more for countingCalculate distance between two cities1, 2, 6, 10, ...int
Floating-pointWe use floating-point numbers for accurate measurementsDefine the temperature today30.5, 38.9, 10.0006, 60.0float

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

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 integer",
)
print("Check the type of 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 8
some-alt