結果 : check type of variable in if statement python