How to count number of palindrome sequence in a string using python

I am a begineer not getting how to solve this any solution

Note : ignore single character and should take length greater then 2 or more then 2 character match

Example 1 :

If my input string is : abactczz

Then output should be : 3 which will print this -> aba , ctc , zz

My code :



for i in lst:
    if len > 2 and lst/2:
How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum