You are viewing a single comment's thread. Return to all comments →
def minion_game(string): # your code goes here vowel = ['A', 'E', 'I', 'O', 'U'] vowel_pt = 0 consonant_pt = 0 for i in range(len(string)): if string[i] in vowel: vowel_pt += (len(string) - i) else: consonant_pt +=(len(string) - i) if vowel_pt > consonant_pt: print("Kevin", vowel_pt) elif consonant_pt > vowel_pt: print("Stuart", consonant_pt) else: print("Draw") # print(score["Stuart"]) 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 →