Datasets:

Modalities:
Text
Formats:
text
Size:
< 1K
Libraries:
Datasets
License:
PyRs2 / python /palindrome.py
khulnasoft's picture
Upload folder using huggingface_hub
998b6cc verified
raw
history blame contribute delete
108 Bytes
def is_palindrome(s):
return s == s[::-1]
print(is_palindrome("racecar"))
print(is_palindrome("hello"))