(ii) To check whether a string named 'word' is a palindrome or not.
Answer:
Answer by student
The python statement to check whether a string named, word is a palindrome or not is:
word == word[::-1]
Detailed answer by teachoo
The rest of the post is locked. Join Teachoo Black to see the full post.