Can someone help me under quotient and remainder? And what is the floor and modulo operators? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can someone help me under quotient and remainder? And what is the floor and modulo operators?

I searched thru the internet and this app search but nothing.

13th Sep 2019, 10:57 AM
Alex
1 Answer
+ 4
If you performe a division, you can get 2 things: the quotient and the remainder. 7 / 4 => 1 (quotient), and there will be remainder => 3. The remainder will be calculated in python with the '%' operator ( also called modulus operator). So 7 % 4 => 3.
13th Sep 2019, 11:36 AM
Lothar
Lothar - avatar