Skip to content

Instantly share code, notes, and snippets.

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