Beginner Python Tutorial 13 - Floor Division (Double Forward Slash)

preview_player
Показать описание


~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~ SUPPORT ME ~~~~~~~~~~~~~~

🅑 Bitcoin - 3HnF1SWTzo1dCU7RwFLhgk7SYiVfV37Pbq
🅔 Eth - 0x350139af84b60d075a3a0379716040b63f6D3853
Рекомендации по теме
Комментарии
Автор

So I need to make this make sense. Floor will give you the result of a decimal 3.3333 in the form of 3. So if the result is which in normal math would be rounded upwards to 4 floor would still return 3. No matter what is behind the decimal point floor will always return the number to the left. Is that correct?

corneliusjermainehightower
Автор

13 for 13. two away from my goal. Neat trick!

mearapellar-kosbar
Автор

You could also print(round(result)) to get a whole Number without all the extra stuff like import math, ETC.

Brimstoned_
Автор

part 2 of my moment the ceil() will round upwards so if the result is it will return 4 not like in normal math which would just be 3 because its not .5 or higher. So ceil() will return 4 as the result even if 3.0000 is the result? I am struggling to put this together so if anyone can correctly answer these 2 comments please do.

corneliusjermainehightower
Автор

So it just omits the remainder? Whereas modulo returns the remainder?

liamhoward
Автор

We can do ceiling version just by adding 1 like result=(10//3)+1

saubhagyatandon
Автор

can i consider myself job ready for data analyst after doing this beginner and Python course ? please advice or guide me.

shrinivasgaikwad
Автор

So can you, or anyone else, give a real world application example of this? I've been able to find case usage of the modulus operator, but I just can't seem to find when you would use this.

Altcapball
Автор

Nice video, but you still haven't explained what a float is to the audience.

brandonprows
Автор

How can i download python in my laptop ??

anonymous__
Автор

Actually it's not equivalent if you have a large number to divide. for example,

>>>


whereas

>>>

dnCain
Автор

Hello
Does it work if i apply this code import math
Print (10//3)

Nicolas_Godressi