Created
February 17, 2026 12:19
-
-
Save faretek1/8e71f6b36fbd7cea6845db9624407f0e to your computer and use it in GitHub Desktop.
check if smth is a palindrome. 1-liner-ified. i do not recommend using this code.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| s = input(">") | |
| print(all(a == b for a, b in zip(s, s[::-1]))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment