def match_words(words):  
  ctr = 0  
  
  for word in words:  
    if len(word) > 1 and word[0] == word[-1]:  
      ctr += 1  
  return ctr  
  
print(match_words(['abc', 'xyz', 'aba', '122771']))

 

相关文章:

  • 2022-12-23
  • 2022-01-17
  • 2022-12-23
  • 2021-10-06
  • 2021-11-25
  • 2022-12-23
猜你喜欢
  • 2021-07-31
  • 2022-12-23
  • 2022-12-23
  • 2021-07-08
  • 2022-12-23
  • 2022-12-23
  • 2022-02-07
相关资源
相似解决方案