Write a Python function maxaceregate(!) that takes a list of pairs of the form (name score) as argument, where name is a string and score is an Integer Each pair is to be interpreted as the score of the named player For instance, an input of the form [CKohir 73) CAshwin 33), (Kohir, 7)(Pujara, 122) (Ashwin' 00) lepresents two scores of 73 and 7 for Kohli, two scores of 33 and 90 for Ashwin and one score of 122 for Pujara Your function should compute the players who have the highest aggregate score (aggegrate = total, no add up all scores for that name) and retum the list of names of these players as a list, sorted in alphabetical order If there is a single player, the list will contain a single name

For Instance, max aggregate((('Kohli,73),('Ashwin,33),Kohli',)r Pujara',122).CAsein',90)]) should return 'Ashwin'] because the aggregate score of Kohlis BO of Ashwin is 123 and of Pujara is 122, of which 123 s the highest

So I see this is a homework question, but how can we help you with it? What code do you have so far? Where are your stuck? How can we help you understand how to complete this better?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.