+ 2
what is floor division
python asks me to use floor division but how can i use it when i dont know what floor division is and how to use it!
2 Answers
+ 3
Double Slash (//) is called Floor Division.
In Python3 it's used in numeric calculation (division) to get integer quotient.
example:
10/2 = 4.5 or 10//2 = 4
50/16 = 3.125 or 50//16 = 3
NOTE:
FLOOR DIVISION IS EXPRESSED BY 2 FORWARD SLASHES
https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2273/
+ 2
thanks that helped me lots