it because //gives an int output by default ?
The // is the integer division, it'll return the nearest integer that divides the number.
Nearest let say 8//3 we going to get 2 even if the natural division would give us 2.667 then take 6 to 3 is that what you meant with return to the nearest
It returns only the integer portion
If you want 8 by 3 to return 3, you're looking for round()
Exactly thanks i got the answer why print(2%(5//2))==0 is True🙈
It 2 unless we put build up.round function but i havent tried it with build.up function not my level yet
\' this is amazing for single qoute inside single qoute then to make lines \n is crazy then the is triple double qoutes for multiple lines.
That is a normal division mate lemme try round(8//3) and see the output
Обсуждают сегодня