Skip to content

Instantly share code, notes, and snippets.

@pythoneast
Created May 10, 2018 04:37
Show Gist options
  • Save pythoneast/64ab35babcbd48e11f196feee4fb4228 to your computer and use it in GitHub Desktop.
Save pythoneast/64ab35babcbd48e11f196feee4fb4228 to your computer and use it in GitHub Desktop.
The minion game
S = input("Type your word: ").upper()
n = len(S)
stuart = 0
kevin = 0
vowels = ('A', 'E', 'I', 'O', 'U')
for i in range(n):
if S[i] in vowels:
kevin += n - i
else:
stuart += n - i
if stuart > kevin:
print("Stuart " + str(stuart))
elif kevin > stuart:
print("Kevin " + str(kevin))
else:
print("Draw")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment