Computer Science, asked by mudimelasuvarna9701, 10 months ago

the first line an integer t indicating the number of test cases T lines each containing one string(palindrome) programe

Answers

Answered by pavithranatarajan855
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