Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Division and whole part division | Arithmetic operations
Practice
Projects
Quizzes & Challenges
Quiz
Challenges
/
Learn Python from Scratch
Section 2. Chapitre 3
single

single

bookDivision and whole part division

Glissez pour afficher le menu

Division is easy - just use / operator.

If you use // instead of / Python will calculate the result and take only the whole part.

Please note the the result of division will always be type 'float' (floating point number)

Tâche

Swipe to start coding

Please calculate the result of whole part division of 10 by 4. Print the result and print the type of resulting variable "c".

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 2. Chapitre 3
single

single

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

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

some-alt