Learn Python Programming 2: Arithmetic Operators

preview_player
Показать описание
In this video we'll look at the basic arithmetic operators available in Python and the differences between integers and floating point.

I should have mentioned that integer division rounds towards Zero. For example, 20/7 is closer to 3 than 2, but integer division doesn't round towards the closest answer, it rounds towards 0, any remainder is simply chopped off!

Patreon:

FaceBook:

Music Channel:
Рекомендации по теме
Комментарии
Автор

keep up the good work pal!
I'm interested in more x86/x64 assembly vids!

VlingoVideo
Автор

the decimal type should be used in place of floating point when accuracy is necessary (particularly when dealing with financials)

Kamel