the first line an integer t indicating the number of test cases T lines each containing one string(palindrome) programe
Answers
Answered by
0
Answer:
str=input("enter string:")
str1=str[: :-1]
if(str==str1):
print(str,"is a palindrome")
else:
print(str,"is not a palindrome")
Explanation:
Similar questions