結果 : how to exit nested loop python