+ 1

What is // in Python?

What is the difference between / and // ?

29th Jul 2017, 2:07 AM
Andrés04_ve
Andrés04_ve - avatar
2 Answers
+ 11
// is known as floor division. It rounds off the result of a normal division to its lower limit. E.g. 10/3 = 3.3333... 10//3 = 3
29th Jul 2017, 2:18 AM
Hatsy Rei
Hatsy Rei - avatar
+ 2
Thanks so much ^^
29th Jul 2017, 2:19 AM
Andrés04_ve
Andrés04_ve - avatar