結果 : how to exit a function early in python