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

Kurssisisältö

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

book
Deal with Percents

You've managed a lot of tasks already, but let's add something new related to math operations.

Math symbolUsageExample in PythonResult
*Multiplying numbers5 * 630
//Integer Division. It is used when we want to know how many right numbers the left number contains.15//27
%Remainder. It is used when we want to calculate the remainder of a division.15 % 21
question-icon

You have the price of the subscription for one app. Find the 20% of this price. To do it, you need to multiply the number by the percent. But be careful if we want to know how much is 30 % from 600 we need to do the following: 600 * 0.30.

old_price = 400
price_20 = 400
0.20

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

Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 1. Luku 5

Kysy tekoälyä

expand
ChatGPT

Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme

course content

Kurssisisältö

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

book
Deal with Percents

You've managed a lot of tasks already, but let's add something new related to math operations.

Math symbolUsageExample in PythonResult
*Multiplying numbers5 * 630
//Integer Division. It is used when we want to know how many right numbers the left number contains.15//27
%Remainder. It is used when we want to calculate the remainder of a division.15 % 21
question-icon

You have the price of the subscription for one app. Find the 20% of this price. To do it, you need to multiply the number by the percent. But be careful if we want to know how much is 30 % from 600 we need to do the following: 600 * 0.30.

old_price = 400
price_20 = 400
0.20

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

Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 1. Luku 5
Pahoittelemme, että jotain meni pieleen. Mitä tapahtui?
some-alt