From b30e92bc25dff145ab65b6b9975b164dfe10bffb Mon Sep 17 00:00:00 2001 From: unknowne Date: Sat, 15 Oct 2022 20:25:22 +0530 Subject: [PATCH] Added solution to question 9 in python --- python/9-Palindrome-Number.py | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 python/9-Palindrome-Number.py diff --git a/python/9-Palindrome-Number.py b/python/9-Palindrome-Number.py new file mode 100644 index 0000000..fce763a --- /dev/null +++ b/python/9-Palindrome-Number.py @@ -0,0 +1,3 @@ +class Solution: + def isPalindrome(self, x: int) -> bool: + return str(x) == str(x)[::-1] \ No newline at end of file