結果 : how to break nested loops in python