We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
defminion_game(string):# your code goes herecount_stuart=0count_kevin=0a={xforxins}foriina:forjinrange(len(string)+1):ifj>string.index(i):ifi.upper()in['A','E','I','O','U']:subk=string[string.index(i):j]count_kevin+=string.count(subk)else:subs=string[string.index(i):j]count_stuart+=string.count(subs)ifcount_stuart>=count_kevin:print('Stuart',count_stuart)else:print('Kevin',count_kevin)if__name__=='__main__':``
Can you please tell what is wrong with my code
Cookie support is required to access HackerRank
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 →
Can you please tell what is wrong with my code