結果 : exit function if condition python