結果 : check type in if statement python