You are viewing a single comment's thread. Return to all comments →
def minion_game(string): vowels = "AEIOU" Kevin_score = 0 Stuart_score = 0 for i in range(len(string)): if string[i] in vowels: Kevin_score += len(string) - i else: Stuart_score += len(string) - i if Stuart_score > Kevin_score: print("Stuart", Stuart_score) elif Stuart_score == Kevin_score: print("Draw") else: print("Kevin", Kevin_score)
Seems like cookies are disabled on this browser, please enable them to open this website
The Minion Game
You are viewing a single comment's thread. Return to all comments →