[LeetCode][python3]0009. Palindrome Number
Start the Journey
N2I -2020.03.16
1. My first solution
class Solution:
    def isPalindrome(self, x: int) -> bool:
        if str(x)== str(x)[::-1]:
            return True
        else:
            return False


Explanation:
An easy way to done the job in python3.
Comments
Post a Comment