subject

You're in charge of maintaining the statistics for your friends' soccer league. Complete the following function that accepts a list of tuples. Each tuple in the list will contain four elements: the first element is a string denoting the name of a particular player, and the next three elements are integers denoting the number of goals that player has scored in each of the last three seasons. The function should create and return a set of the names of all players who have scored at least 10 goals in each of the last three seasons. Input Format
The list of tuples will be passed as the only parameter to your function.
Constraints
Output Format
Your function should return the set of names of the elite scorers.
Sample Input 0
[('George', 4, 5, 1), ('Tommy', 15, 12, 16), ('Diego', 18, 17, 21), ('Raymond', 12, 7, 8)]
Sample Output 0
{'Diego', 'Tommy'}
Sample Input 1
[('Frank', 4, 11, 2)]
Sample Output 1
{}

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 04:00, coolconnor1234p0sv4p
Another name for addicting games. com
Answers: 1
image
Computers and Technology, 23.06.2019 05:00, mikeysoulemison
Jason works as an accountant in a department store. he needs to keep a daily record of all the invoices issued by the store. which file naming convention would him the most?
Answers: 2
image
Computers and Technology, 23.06.2019 19:30, wilkinsonei4069
Anul 2017 tocmai s-a încheiat, suntem trişti deoarece era număr prim, însă avem şi o veste bună, anul 2018 este produs de două numere prime, 2 şi 1009. dorel, un adevărat colecţionar de numere prime, şi-a pus întrebarea: “câte numere dintr-un interval [a, b] se pot scrie ca produs de două numere prime? “.
Answers: 1
image
Computers and Technology, 24.06.2019 07:30, isabelgalvarado2838
Jason is working on a microsoft excel worksheet and he wants to create a print preview shortcut. his teacher asks him to access the customization option to create the new shortcut. which two tabs should jason select to place the print preview shortcut on the worksheet toolbar? a. new tab (custom) and new group (custom) b. new file tab (custom) and new tab (custom) c. new custom group and new command d. new custom tab and new command
Answers: 2
You know the right answer?
You're in charge of maintaining the statistics for your friends' soccer league. Complete the followi...

Questions in other subjects: