結果 : how to validate type in python