RosettaCodeData/Task/Palindrome-detection/Python/palindrome-detection-1.py

3 lines
44 B
Python
Raw Permalink Normal View History

2013-04-10 23:57:08 -07:00
def is_palindrome(s):
return s == s[::-1]