Skip to content

Instantly share code, notes, and snippets.

@r14152
Created August 20, 2021 14:52
Show Gist options
  • Save r14152/ef3187a44f641fc7518da58b6fc39cdd to your computer and use it in GitHub Desktop.
Save r14152/ef3187a44f641fc7518da58b6fc39cdd to your computer and use it in GitHub Desktop.
def minion_game(string):
# your code goes here
kevin = 0
stuart = 0
for i in range(0,len(string)):
if string[i] in ['A','E','I','O','U']:
kevin += len(string)-i
else:
stuart += len(string)-i
if kevin == stuart:
print("Draw")
elif kevin > stuart:
print("Kevin",kevin)
else:
print("Stuart", stuart)
if __name__ == '__main__':
s = input()
minion_game(s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment