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

3 lines
44 B
Python

def is_palindrome(s):
return s == s[::-1]