+ 1

>>> 20 // 6 =3

Explain me this question

28th Apr 2019, 7:46 AM
Edulla Basha
Edulla Basha - avatar
6 ответов
+ 12
Hey there 😃 In Python, // means floor division. So for example, let's take 10 // 4 = 2 10 / 4 = 2.5 If you floor 2.5, you'll get 2. I hope it helps 😊
28th Apr 2019, 8:01 AM
Edwin Pratt
Edwin Pratt - avatar
+ 9
No problem 😃
28th Apr 2019, 8:14 AM
Edwin Pratt
Edwin Pratt - avatar
+ 8
Hey Edulla Basha 😃 10 // 4 = 2 is simply dividing 10 by 4, then removing the decimal point. // performs two operations: 1. Divide 2. Remove the decimal point 5 // 2 = 5 / 2 = 2.5 = floor 2.5 = 5 6 // 2 = 6 / 2 = floor 3 = 3 Hope it helps 😃
28th Apr 2019, 8:10 AM
Edwin Pratt
Edwin Pratt - avatar
+ 2
Thanks Edwin pratt
28th Apr 2019, 8:14 AM
Edulla Basha
Edulla Basha - avatar
0
10//4=2 I didn't understand the // symbols how did they divided
28th Apr 2019, 8:03 AM
Edulla Basha
Edulla Basha - avatar
0
5 // 2 =Floor 2.5 Isn't it equals 2 if // means to remove the decimal point?
3rd Jun 2019, 8:26 AM
kok jabez
kok jabez - avatar