Last active
July 31, 2022 15:40
-
-
Save humayanalrosid/c18518748e57247c68643f87eb7dc34b to your computer and use it in GitHub Desktop.
Palindrome Checker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" 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