結果 : how to break out of a function in python