Skip to content

Instantly share code, notes, and snippets.

@Raj39120
Created April 30, 2020 13:40
Show Gist options
  • Save Raj39120/0288b97823e020d479dcf07efa3dacf0 to your computer and use it in GitHub Desktop.
Save Raj39120/0288b97823e020d479dcf07efa3dacf0 to your computer and use it in GitHub Desktop.
a = str(input("Enter letters or words over here that are surrounded by quotes, and the program checks if palindrome: "))
reverse_a = a[::-1]
if a == reverse_a:
print("This is a palindrome.")
else:
print("This is not a palindrome.")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment