結果 : how to break out of a nested for loop python