結果 : python define function in if statement