1n = input("Enter the word and see if it is palindrome: ") #check palindrome
2if n == n[::-1]:
3 print("This word is palindrome")
4else:
5 print("This word is not palindrome")
1s=input("enter:")
2temp=s
3c=0
4v=0
5print(temp)
6for i in s:
7 c=c+1
8for j in range(c):
9 if temp[v]==s[c-1]:
10 c=c-1
11 v=v+1
12 flag=1
13 else:
14 flag=0
15if flag==1:
16 print("p")
17elif flag==0:
18 print("no")
19
1value = input("Enter a Word: ")
2
3if value == value[::-1] :
4 print(value)
5 print(value[::-1])
6 print("THIS WORD IS A PALINDROME")
7else :
8 print(value)
9 print(value[::-1])
10 print("THIS WORD IS NOT A PALINDROME")
1#A palindrome is a word, number, phrase, or other sequence of characters which reads the same backward as forward.
2#Ex: madam or racecar.
3#CODE BY VENOM
4a=input("Enter you string:\n")
5w=str(a)
6if w==w[::-1]: # w[::-1] it will reverse the given string value.
7 print("Given String is palindrome")
8else:
9 print("Given String is not palindrome")
10#CODE BY VENOM
11#CODE BY VENOM
12
1mes=input("Enter the word and see if it is palindrome ")
2if mes==mes[::-1]:
3 print("This word is palindrome")
4else:
5 print("This word is not palindrome")