結果 : iterate through 2d matrix python