You are viewing a single comment's thread. Return to all comments →
def minion_game(string): # your code goes here string = string.upper() stuartScore = 0 kevinScore = 0 s = len(string) for i in range(s): if string[i] in 'AEIOU': kevinScore += (s-i) else: stuartScore += (s-i) if kevinScore > stuartScore: print(f"Kevin {kevinScore}") elif kevinScore < stuartScore: print(f"Stuart {stuartScore}") else: print("Draw") if __name__ == '__main__': s = input() minion_game(s)
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 →