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

Contenu du cours

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

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 5

Demandez à l'IA

expand
ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

course content

Contenu du cours

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

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 5
Nous sommes désolés de vous informer que quelque chose s'est mal passé. Qu'est-il arrivé ?
some-alt