Skip to content

Instantly share code, notes, and snippets.

@charlieInDen
Last active October 23, 2020 06:23
Show Gist options
  • Save charlieInDen/eff8362cab15d343cfc4f42858881b95 to your computer and use it in GitHub Desktop.
Save charlieInDen/eff8362cab15d343cfc4f42858881b95 to your computer and use it in GitHub Desktop.
def getCount(inputStr):
num_vowels = 0
for char in inputStr:
if char in "aeiouAEIOU":
num_vowels = num_vowels + 1
return num_vowels
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment