@monomonnik yes and no. in the chessboard examples it does not really matter if you go by columns or by rows. but yes the first returned value is the quotient i//n or int(i/n) and the second returned value is the remainder (modulo) i % n.