結果 : how to break nested loop in python