結果 : function to check if integer python