The Basics - Python 3: Integer Division

preview_player
Показать описание
In this video we briefly talk about integer division and the specific // operator introduced in Python 3. Be very cautious of integer division if programming in a language like Java as 10/3 will automatically perform integer division and this can cause logic errors (rounding problems)
Рекомендации по теме
Комментарии
Автор

Great video!
I just wanted a quick and easy explanation for // and you gave it.
Thanks!

radjared
Автор

How do I get it into a fraction? I'm taking 15//4 and I get 3.75, but I need to show it as 3 3/4

bobbylowman