I am trying to create a piece of coding which counts how many times each vowel is used in a sentence. My current coding looks like:
sentence = str(input("Please enter your line of text; ").lower())
only_vowels = re.sub(r"[^aeiou]", "", sentence)
c = (collections.Counter(list(only_vowels)))
print(c)
However, when I print enter the sentence as "Hello World"....and the coding tries to print 'c', it returns...
Counter({'o': 2, 'e': 1})
Of course, it has done its job and counted how many times each vowel occurred... However, I do not want the word 'Counter' to be printed at the front each time. Is there any way I can stop this?!