(Solved):Write a Python program to count the number of strings where the string length is 2 or more and the string is a palindrome from the list of strings(with test cases). View Answer…

 

Question

Write a Python program to count the number of strings where the string length is 2 or more and the string is a palindrome from the list of strings(with test cases).

 

EXPERT ANSWER

  1. def reverse(s): # reverse function to reverse string element
  2.     if len(s) ==
Scroll to top