You are viewing a single comment's thread. Return to all comments →
My code:
def minion_game(string):
c_points = 0 v_points = 0 for p in range(0, len(string)): if(string[p] not in ('A', 'E', 'I', 'O', 'U')): c_points += len(string) - p if(string[p] in ('A', 'E', 'I', 'O', 'U')): v_points += len(string) - p if c_points > v_points: print(f'Stuart {c_points}') elif v_points > c_points: print(f'Kevin {v_points}') 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 →
My code:
def minion_game(string):
if name == 'main': s = input() minion_game(s)