-->
当前位置:首页 > 题库

PROGRAMMING:Count the number of times each letter appears in the string list (exercise 6-8, fundamentals and applications of Python programming, Higher Education Society)

Luz5年前 (2021-05-10)题库402
Count the number of times each letter appears in the string list< br>
Write a program, use the eval() function to read in a list of only string objects, and then count the number of times each letter appears in the list.
String objects in the list contain only lowercase English letters.
###Input format:
A list containing only string objects, and all string objects contain only lowercase English letters.
###Output format:
Letters, times < br > 0
...

Letters, times < br > 0
(note output in A-Z order)
###Input example:
```in
["aaab", "cccdz"]
```
###Output example:
The corresponding output is given here. For example:
```out
a,3
b,1
c,3
d,1
z,1
```







answer:If there is no answer, please comment