You are viewing a single comment's thread. Return to all comments →
def minion_game(string):
vowels = 'AEIOU' size = len(string) count, sscore = 0, 0 kscore = 0 for letter in string: count += 1 if letter not in vowels: sscore += 1 sscore += (size - count) else: kscore += 1 kscore += (size - count) if kscore > sscore: print(f'Kevin {kscore}') elif sscore > kscore: print(f'Stuart {sscore}') else: print('Draw')
if name == 'main':
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 →
def minion_game(string):
if name == 'main':