結果 : how to break a nested loop in python