You are viewing a single comment's thread. Return to all comments →
kevin_score = stuart_score = 0 length = len(string) count = 0 for c in string: if c in 'AEIOU': kevin_score += (length - count) else: stuart_score += (length - count) # string = string[1:] count += 1 if (kevin_score > stuart_score): print(f'Kevin {kevin_score}') elif (stuart_score > kevin_score): print(f'Stuart {stuart_score}') 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 →