Skip to content

Instantly share code, notes, and snippets.

@shounaklohokare
Created Dec 12, 2020
Embed
What would you like to do?
def minion_game(string):
s=len(string)
vowel = 0
consonant = 0
for i in range(s):
if string[i] in 'AEIOU':
vowel+=(s-i)
else:
consonant+=(s-i)
if vowel < consonant:
print('Stuart ' + str(consonant))
elif vowel > consonant:
print('Kevin ' + str(vowel))
else:
print('Draw')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment