Count vowels and store in dictionary

Asked

Viewed 822 times

-2

Li this question and its answers but I still have one question.

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

  • The question you quoted already does that, doesn’t it? Just understand the answers given. If not, describe exactly what the problem is.

  • None of the answers there solved? https://answall.com/q/166519/3635 Tested the Michele and Miguel solution?

1 answer

-3

word = "tal coisa tal"
Delimitador = "aeiou"
k = 0
for i in range(len(word)):
    if word[i] in Delimitador:
        k++
  • 1

    Sorry, I don’t understand. If you want to put a code in Python, select the desired part and press ctrl+k

Browser other questions tagged

You are not signed in. Login or sign up in order to post.