The Minion Game

  • + 0 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)