Python 3.7: Floor Division In Python

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

what is the result of the following
(8+9//2+3)

rachelmonisha
Автор

Does the remainder get carried over if you were to make a more complex function? Or does Python round down and destroy the data of the remainder?

In your example you do 54//90 and you get 0. With regular division you get a result of 0.6. Does that 0.6 get carried over if you were to want to convert seconds to minutes, days, and hours?

diegoespinosa