diff --git a/HackerRank/Python/Strings/The Minion Game b/HackerRank/Python/Strings/The Minion Game new file mode 100644 index 00000000..fe62bbe7 --- /dev/null +++ b/HackerRank/Python/Strings/The Minion Game @@ -0,0 +1,18 @@ +def minion_game(string): + vowels = 'AEIOU' + str_lenght = len(string) + kevin_score, stuart_score = 0, 0 + + for i in range(str_lenght): + if s[i] in vowels: + kevin_score += (str_lenght - i) + else: + stuart_score += (str_lenght - i) + + if kevin_score > stuart_score: + print("Kevin", kevin_score) + elif kevin_score < stuart_score: + print("Stuart", stuart_score) + else: + print("Draw") +