結果 : how to exit a function early python