結果 : check for valid integer in python