Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Learn Numbers | Introduction to Python 1/2
Practice
Projects
Quizzes & Challenges
Quizer
Challenges
/
Introduction to Python for Data Analysis

bookLearn Numbers

Sveip for å vise menyen

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

Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 1. Kapittel 8

Spør AI

expand

Spør AI

ChatGPT

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

Seksjon 1. Kapittel 8
some-alt