From 71afc1974cfd40b3e291474c2579ebcb88fcfa7c Mon Sep 17 00:00:00 2001 From: jxie0755 <30805062+jxie0755@users.noreply.github.com> Date: Wed, 24 Jan 2018 14:29:16 -0500 Subject: [PATCH] Update palindrome-number.py --- Python/palindrome-number.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)