結果 : how to exit a nested for loop in python