結果 : define function in if statement python