結果 : how to validate an integer in python