結果 : check type in if condition python