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

Kursinnhold

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

book
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

Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 2. Kapittel 2

Spør AI

expand
ChatGPT

Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår

course content

Kursinnhold

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

book
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

Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 2. Kapittel 2
Vi beklager at noe gikk galt. Hva skjedde?
some-alt