Download python/palindrome.py from neopilot/PyRs2: direct link, hf CLI and curl.
- Browser
- Download file 108 Bytes
-
https://huggingface.co/datasets/neopilot/PyRs2/resolve/main/python/palindrome.py
- Command line
-
hf download hf://datasets/neopilot/PyRs2/python/palindrome.py
-
curl -L -o palindrome.py https://huggingface.co/datasets/neopilot/PyRs2/resolve/main/python/palindrome.py
108 Bytes
| def is_palindrome(s): | |
| return s == s[::-1] | |
| print(is_palindrome("racecar")) | |
| print(is_palindrome("hello")) |