You are viewing a single comment's thread. Return to all comments →
def minion_game(string): kevin=stuart=0 n = len(string) for i in range(n): if string[i].lower() in ['a','e','i','o','u']: kevin+=n-i else: stuart+=n-i if stuart > kevin: print(f"Stuart {stuart}") elif stuart < kevin: print(f"Kevin {kevin}") else: print("Draw")
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 →