+ 1
I cant understand this concept
6//2?? 3%6?
3 Answers
+ 2
first one is an error. and second one is used to find remainder.
0
// division then round to the nearest integer that is equal or smaller than the result. eg. 11//3==3, -11//3==-4
% gives the remainder of a division eg 11%3==2
0
@Nawaj Shareef: it is Python 3.5, not 1.x or 2.x (x < 5, maybe?)