Skip to content

Instantly share code, notes, and snippets.

@Wingless-Archangel
Created November 6, 2016 06:11
Show Gist options
  • Save Wingless-Archangel/99928d5e5a42d5c4f47e80ce40c5f85c to your computer and use it in GitHub Desktop.
Save Wingless-Archangel/99928d5e5a42d5c4f47e80ce40c5f85c to your computer and use it in GitHub Desktop.
find out the string is palindrome or not.
#!/usr/bin/python3
def main():
text = input("Please enter the text to test : ")
if text == text[::-1]:
print("This text is palindrome.")
else:
print("This text is not palindrome.")
if __name__=='__main__':
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment