word = "шалаш" reversed_word = word[::-1] if word == reversed_word: print("Слово является палиндромом") else: print("Слово не палиндром")
To embed this program on your website, copy the following code and paste it into your website's HTML: