Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Division and whole part division | Arithmetic operations
Learn Python from Scratch

Swipe to show menu

book
Division and whole part division

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)

Task

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 desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 2. ChapterΒ 3

Ask AI

expand
ChatGPT

Ask anything or try one of the suggested questions to begin our chat

book
Division and whole part division

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)

Task

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 desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 2. ChapterΒ 3
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
We're sorry to hear that something went wrong. What happened?
some-alt