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

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 21:00
Write a method so that the main() code below can be replaced by the simpler code that calls method original main(): public class calcmiles { public static void main(string [] args) { double milesperhour; double minutestraveled; double hourstraveled; double milestraveled; milesprhour = scnr.nextdouble(); minutestraveled = scnr.nextdouble(); hourstraveled = minutestraveled / 60.0; milestraveled = hourstraveled * milesperhour; system.out.println("miles: " + milestraveled); } }
Answers: 2
question
Computers and Technology, 24.06.2019 02:30
How to apply the fly in effect to objects on a slide
Answers: 1
question
Computers and Technology, 24.06.2019 06:00
Hey i really need some solving this problem: 1. encrypt this binary string into cipher text: 110000. include in your answer the formula the decoder would use to decrypt your cipher text in the format (coded answer) x n mod (m) = y & 2. decrypt this cipher text into a binary string: 106 you.
Answers: 2
question
Computers and Technology, 24.06.2019 12:30
Do you think media is stereotype ? and why?
Answers: 1
You know the right answer?
You're in charge of maintaining the statistics for your friends' soccer league. Complete the followi...
Questions
question
Health, 18.08.2021 17:10
Questions on the website: 13722367