diff --git a/Python/palindrome-number.py b/Python/palindrome-number.py index ab1a797c6..f7745350e 100644 --- a/Python/palindrome-number.py +++ b/Python/palindrome-number.py @@ -24,11 +24,11 @@ def isPalindrome(self, x): while copy: reverse *= 10 reverse += copy % 10 - copy /= 10 + copy //= 10 return x == reverse if __name__ == "__main__": print Solution().isPalindrome(12321) print Solution().isPalindrome(12320) - print Solution().isPalindrome(-12321) \ No newline at end of file + print Solution().isPalindrome(-12321)