We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94503a8 commit 2825e7bCopy full SHA for 2825e7b
.github/Palindrome.py
@@ -0,0 +1,7 @@
1
+class Solution:
2
+def isPalindrome(self, x: int) -> bool:
3
+x = str(x)
4
+if x[::-1] == x[::]:
5
+return True
6
+else:
7
+return False
0 commit comments