exercise: Create a program that receives a line of text and counts the vowels with the respective histogram as follows:
Example: Last line of text: "Next Wednesday is holiday. "
a : ****** (6)
e : *** (3)
i : *** (3)
o : ** (2)
u : * (1)
I did this:
texto = 'na proxima quarta-feira é feriado'
a = texto.count('a')
print('a:','*'*a,'(',a,')')
The way I did does exactly what the exercise asks for, I would have to do the vowel by vowel. I would like to know in a more practical way to do because for example if the exercise asked for letters of the alphabet everything would be too big to do everything.