結果 : if statement based on data type python