Skip to content

gyandhanee/fsdse-python-assignment-33

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

For eg. Sample List : ['abc', 'xyz', 'aba', '1221'] Expected Result : 2"

Notes:

  • Define a function to accept a list as parameter.
  • Iterate over each element and verify if first chat and last char are same.
  • If same increament count by one.
  • Return count.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%