結果 : how to break from nested loop in python