Skip to content

Instantly share code, notes, and snippets.

@humayanalrosid
Last active July 31, 2022 15:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save humayanalrosid/c18518748e57247c68643f87eb7dc34b to your computer and use it in GitHub Desktop.
Save humayanalrosid/c18518748e57247c68643f87eb7dc34b to your computer and use it in GitHub Desktop.
Palindrome Checker
""" A palindrome is a word or a text that reads the same backward as forward.
Create a program that checks if the word is a palindrome. """
word = input()
counter = -1
for letter in word:
if letter != word[counter]:
print("Not palindrome")
break
counter -= 1
else:
print("Palindrome")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment