ListString


Submit solution

Points: 10 (partial)
Time limit: 10.0s
Memory limit: 5M

Author:
Problem type
Allowed languages
C++, Python

Write a Python program to count the number of strings where the string length is 2 or more and the first and last character are same from a given list of strings.

Sample Input

['abc', 'xyz', 'aba', '1221']

Sample Output

2


Comments


  • 1
    CBENU4CSE19632  commented on July 31, 2020, 6:19 a.m.

    the input and output format is not specified