+ 1
>>> 20 // 6 =3
Explain me this question
6 Answers
+ 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 đ
+ 9
No problem đ
+ 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 đ
+ 2
Thanks Edwin pratt
0
10//4=2 I didn't understand the // symbols how did they divided
0
5 // 2
=Floor 2.5
Isn't it equals 2 if // means to remove the decimal point?