+ 2
Why 11//3 is 3 but -11//3 is -4 in python?
2 Answers
+ 11
Because // returns the rounded down number.
11/3 = 3,666666... the smaller int number is 3 => 11//3 = 3
-11/3 = -3,66666... the smaller int number is -4 => -11//3 = -4
+ 1
Thanks, Arctica. Got it now.