diff options
Diffstat (limited to 'python/helper/palindrome.py')
| -rw-r--r-- | python/helper/palindrome.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/python/helper/palindrome.py b/python/helper/palindrome.py new file mode 100644 index 0000000..3c498ad --- /dev/null +++ b/python/helper/palindrome.py @@ -0,0 +1,2 @@ +def is_palindrome(num): + return str(num) == str(num)[::-1] |
