Closed aryabharat closed 4 years ago
Hi, Thanks for letting me know about these things. I will create a new PR with all the changes.
def countVowels(ip):
ip = ip.casefold()
count = {x:sum([1 for char in ip if char == x]) for x in 'aeiou'}
print(count)
countVowels("hello world")
Is this a better approach ?
added snippet for count vowels in a string
Description
Resolves #(issue number)
What does your PR belong to?
Types of changes
Checklist: