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

Зміст курсу

Learn Python from Scratch

Learn Python from Scratch

1. The basics
2. Arithmetic operations
3. Common data types
4. Conditional statements
5. Other data types
6. Loops
7. Functions

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)

Завдання

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

Завдання

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

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів

Все було зрозуміло?

Секція 2. Розділ 3
toggle bottom row

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)

Завдання

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

Завдання

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

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів

Все було зрозуміло?

Секція 2. Розділ 3
toggle bottom row

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)

Завдання

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

Завдання

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

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів

Все було зрозуміло?

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)

Завдання

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

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Секція 2. Розділ 3
Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
We're sorry to hear that something went wrong. What happened?
some-alt