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

PROGRAMMING:Statistics character frequency

Luz5年前 (2021-05-10)题库392
Input a string and output the most frequent character and the number of times it appears. Dictionary is required.
###Input format:
Enter a string of any length.
###Output format:
The character with the most occurrences in the string and the number of occurrences.
###Input example:
Here is a set of inputs. For example:
```in
abcdsekjsiejdlsjdiejsl
```
###Output example:
The corresponding output is given here. For example:
```out
('s', 4)
```







answer:If there is no answer, please comment