s = "abcdba"
all(f==e for f, in zip(s[0:len(s)//2:1], s[len(s):(len(s)-1)//2:-1]))
Created
January 25, 2020 10:31
-
-
Save Querela/d63d1bea7e789f4e30dc79dde5337cc9 to your computer and use it in GitHub Desktop.
Palindrome
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment