>>> 20 // 6 =3 | Sololearn: Learn to code for FREE!

+1

>>> 20 // 6 =3

Explain me this question

4/28/2019 7:46:59 AM

Edulla Basha

6 Answers

New Answer

+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?