結果 : check type of input in python