65% DON'T Know This About Python!! #python #coding #programming

preview_player
Показать описание
This short video explains how floor division works in Python.

Background Music:
Creative Commons Attribution-ShareAlike 3.0 Unported
Рекомендации по теме
Комментарии
Автор

Bro these videos are really helpful in strengthening our core concepts in python, appreciate it.

ahbil
Автор

This is probably more maths than python, it's about people not realising that -2.5 rounded down is -3 not -2.

The floor is inside the brackets so is evaluated before the abs.

nekogod
Автор

floordiv and mod belong together.

If you have:
q = a//b
r = a%b

then this should be true:
q * b + r == a

SaniSensei
Автор

Was so hyped when I got this right, because most people didn’t pick right😅

savorsauce
Автор

OK, I'm definitely a noob in Python, but I listened to this video 4 times trying to figure out what "FloridaVision" was lol. I'm now aware of "Floor Division" lol

timsmith
Автор

ur videos are really helpful
its great to have some informative thing in between infinity scrolling
and ur presentation and sound is pretty good

mohammeddilshad
Автор

Good to know floor division rounds to the ceiling

ta_noshii
Автор

Bro can I get your Course It's so useful and there are many things which i didn't

k.kaiserahmed
Автор

This isn't a Python issue, this is a mathematics issue. If you didn't know the answer it's not because you don't know Python very well

cmcn
Автор

I heard "florida vision" and was so confused

CouchPotator
Автор

honestly I didn't think floor division even did rounding. I alwaysassumed it just truncated at decimals. lol

NovaHorizon
Автор

remember floor division rounds down a value not towards zero
for eg
1. -5//3 = -2.5
2. round down the -2.5 which would be -3
because -3 < -2.5
3. so answer is -3

nischalthapa
Автор

bro how do you edit videos like this !!
i wanna learn also plz tell
big fan of your videos!

AryaN.
Автор

Today I learned that // is the floor division operator and not the divide as int operator. Oh dear.

nobodyofconsequence
Автор

I think this was one of the few I got right because I worked with floor divisions a lot recently.

TheDutchisGaming
Автор

Damn another one failed, you have teach me so much, thanks!

aleahtoria
Автор

I still don't understand even after watching the video several times 😅

eddymison
Автор

I got this one right. Floor division is not a bad way to think about it if you just want to be able to answer this kind of question, but I strongly recommend that programmers take an interest in its mathematical underpinnings, namely Euclid’s division lemma, which shows the uniqueness of the quotient and the remainder as long as the remainder is positive or zero and strictly less than the divisor.

From there you can learn about Euclid’s algorithm for finding the greatest common divisor, the extended algorithm, Bézout’s identity, and before you know it you’ll be a member of the exclusive club of those who truly understand how blockchains work.

Pure math can lead to $$$$. Relational algebra is another great example. 🎤 ⬇️

pauljarski
Автор

One of those things where if you don't mainly use Python it's easy to think // corresponds to integer division instead of floor division

goclbert
Автор

I thought floor strips the decimal part😅

angadsingh
visit shbcf.ru