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