I don't understand this part quotient and remainder | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 7

I don't understand this part quotient and remainder

Python

24th Jun 2019, 7:24 PM
Isaac Amankonah
Isaac Amankonah - avatar
10 Respuestas
+ 23
a = 10 b = 3 ‚ÄĒ‚ÄĒ‚ÄĒ‚ÄĒ‚ÄĒ‚ÄĒ‚ÄĒ‚ÄĒ‚ÄĒ‚ÄĒ‚ÄĒ‚ÄĒ quotient (a.k.a. floor division): a // b >>> 3 In words: how many times does 3 go in 10? Answer: 3 times ‚ÄĒ‚ÄĒ‚ÄĒ‚ÄĒ‚ÄĒ‚ÄĒ‚ÄĒ‚ÄĒ‚ÄĒ‚ÄĒ‚ÄĒ- remainder (%) a % b >>>1 in words: What is the remainder of 10 divided by 3? Answer: 1 ‚ÄĒ‚ÄĒ‚ÄĒ‚ÄĒ‚ÄĒ‚ÄĒ‚ÄĒ‚ÄĒ‚ÄĒ‚ÄĒ‚ÄĒ- Hope this helps ūüėä
24th Jun 2019, 7:33 PM
aceisace
aceisace - avatar
+ 7
Thank you
24th Jun 2019, 7:35 PM
Isaac Amankonah
Isaac Amankonah - avatar
+ 5
Really it's helps
24th Jun 2019, 7:35 PM
Isaac Amankonah
Isaac Amankonah - avatar
+ 4
You‚Äėre welcome ūüėä Isaac Amankonah
24th Jun 2019, 7:37 PM
aceisace
aceisace - avatar
+ 1
Isaac Amankonah , Can you be more specific?
24th Jun 2019, 7:34 PM
Qbix
Qbix - avatar
+ 1
Thanks for the explanation ace
5th Sep 2019, 7:45 PM
Hammed Folorunso
Hammed Folorunso - avatar
+ 1
You‚Äėre welcome, Hammed Folorunso ‚ėļÔłŹ
6th Sep 2019, 4:21 AM
aceisace
aceisace - avatar
+ 1
Thank you, who answer this :)
25th Aug 2020, 4:45 AM
Jonathan Andreas
Jonathan Andreas - avatar
0
Thanks
21st Jul 2019, 7:58 PM
Tsepo Mohlakoana
Tsepo Mohlakoana - avatar
0
How come 1.25 % 5 is 0.25 it should be 0 since remainder is 0. 0.25 is the quotient
24th Aug 2019, 3:33 PM
Bhabani Mohanta