Count vowels and store in dictionary [duplicate]

-2

Li this question and its answers I still have a question.

I wanted a function that counted the number of vowels in a text and stored in a dictionary where the key is the vowel considered.

    
asked by anonymous 24.09.2017 / 04:18

1 answer

-3
word = "tal coisa tal"
Delimitador = "aeiou"
k = 0
for i in range(len(word)):
    if word[i] in Delimitador:
        k++
    
24.09.2017 / 05:24