結果 : check if same type python