結果 : nested loop python definition