結果 : how to exit function early python