Menu Close

Find out if a word is a palindrome or not

Write a program to find out if a word is a palindrome or not
Palindrome for words

Alpha=input("Enter a word: ")

temp=Alpha[::-1]

if Alpha==temp:
	print("It's a Palindrome")
else:
	print("It's not a palindrome")

Input:
         Enter a word: kawak
Output: 
         It’s a Palindrome


exec. on terminal

More Codes to Fcuk