Skip to content

Instantly share code, notes, and snippets.

@Hwatwasthat
Created March 16, 2018 13:56
Show Gist options
  • Save Hwatwasthat/f4ca2228ea7e998c6f8f90692ab4e315 to your computer and use it in GitHub Desktop.
Save Hwatwasthat/f4ca2228ea7e998c6f8f90692ab4e315 to your computer and use it in GitHub Desktop.
Accumulator Algorithm - Vowels created by Hwatwasthat - https://repl.it/@Hwatwasthat/Accumulator-Algorithm-Vowels
word = input("In:")
sumof = 0
x = 0
for i in word:
if word[x] == "a" or word[x] == "e" or word[x] == "i" or word[x] == "o" or word[x] == "u":
sumof += 1
x += 1
print(sumof)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment