Created
March 14, 2025 19:28
-
-
Save HandsonMatheus/2171430678c074e5c0bb5ae5d6f69e0b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| def palindrome(word): | |
| return word == word[::-1] | |
| input_word = input("Enter a word: ") | |
| if palindrome(input_word): | |
| print("The word is a palindrome") | |
| else: | |
| print("The word is not a palindrome") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment