Question: PYTHON TEST TOP_SCORERS = [ {'fname': 'Kylian', 'lname': 'Mbappe', 'age': 24, 'country': 'France', 'goals': 8 }, {'fname': 'Lionel', 'lname': 'Messi', 'age': 35, 'country': 'Argentina', 'goals':

PYTHON TEST

TOP_SCORERS = [

{'fname': 'Kylian',

'lname': 'Mbappe',

'age': 24,

'country': 'France',

'goals': 8

},

{'fname': 'Lionel',

'lname': 'Messi',

'age': 35,

'country': 'Argentina',

'goals': 7

},

{'fname': 'Olivier',

'lname': 'Giroud',

'age': 33,

'country': 'France',

'goals': 4

},

{'fname': 'Julian',

'lname': 'Alvarez',

'age': 25,

'country': 'Argentina',

'goals': 4

},

{'fname': 'Richarlison',

'lname': 'Richarlison',

'age': 22,

'country': 'Brazil',

'goals': 3

},

{'fname': 'Mohammed',

'lname': 'Kudus',

'age': 28,

'country': 'Ghana',

'goals': 2

},

{'fname': 'Goncalo',

'lname': 'Ramos',

'age': 26,

'country': 'Portugal',

'goals': 3

},

{'fname': 'Alvaro',

'lname': 'Morata',

'age': 30,

'country': 'Spain',

'goals': 3

},

{'fname': 'Bukayo',

'lname': 'Saka',

'age': 22,

'country': 'England',

'goals': 3

},

{'fname': 'Mehdi',

'lname': 'Taremi',

'age': 27,

'country': 'Iran',

'goals': 2

},

{'fname': 'Vincent',

'lname': 'Aboubakar',

'age': 28,

'country': 'Cameroon',

'goals': 2

},

{'fname': 'Cho',

'lname': 'Geu-sung',

'age': 24,

'country': 'South Korea',

'goals': 2

}

]

CONFERENCES = {

'Africa': ['Ghana', 'Cameroon'],

'Latin America': ['Argentina', 'Brazil'],

'Europe': ['France', 'Spain', 'Portugal', 'England'],

'Asia': ['Iran', 'Saudi Arabia', 'South Korea', 'Japan']

}

# This challenge will requires using the CONFERENCES global variable.

# Write a function that takes a single arguments, which is a string representing the name of a conference

# (e.g. 'Europe'), and return full name of the player from that conference with the most goals.

# Hints:

# You will need to sort the TOP_SCORERS list

# You will need to check the player's country against the specified conference.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!