[LeetCode][python3]0009. Palindrome Number

Start the Journey
N2I -2020.03.16

1. My first solution


  1. class Solution:
  2. def isPalindrome(self, x: int) -> bool:
  3. if str(x)== str(x)[::-1]:
  4. return True
  5. else:
  6. return False
  7.  


N2I -2020.03.16

Explanation:

An easy way to done the job in python3.