The most frequent letter

Given a text we want to know the most frequent lowercase letter. Write a
program that given a text prints the most frequent lowercase letter and
its frequency among all lowercase letters. You can use the method
islower() to check if a character is a lowercase letter. For instance,
all threee expressions ’=’.islower(), ’9’.islower() and ’A’.islower()
evaluate to False. On the contrary, ’a’.islower() is True.

Input

Input is a text of characters. The input text has at least one lowercase
letter.

Output

The most frequent lowercase letter and its frequency among all lowercase
letters. If several lowercase letters achieve the maximum frequency, the
program has to print the lower one under the usual string order.

Problem information

Author: ProAl

Generation: 2026-01-25T13:56:34.532Z

© Jutge.org, 2006–2026.
https://jutge.org
