1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
AlexFokin [52]
1 year ago
8

Calculate maximum average Suppose we have a small student dictionary. The dictionary contains the name of each student as key an

d value is a list of their score for three courses. Sample dictionary is provided in the template file. student_dict
Computers and Technology
1 answer:
7nadin3 [17]1 year ago
3 0

Answer:

from functools import reduce

from collections import Counter

def cal_max_avg( mydict ):

    new_item = [ ]

   for items in mydict.items():

       reducer = reduce(lambda x,y: x + y, items[1])/3

       new_item.append((items[0], reducer))

   newdict = Counter(dict(new_item))

   return newdict.most_common(1)

diction = {'john': [45,54,56], 'yolanda':[98,78,87], 'Joshua':[67,78,87]}

result = cal_max_avg( diction )

Explanation:

The python function accepts a dictionary and returns a tuple of the key from the input dictionary with the maximum average score for the students.

You might be interested in
Write a statement that outputs variable numObjects. End with a newline.
dalvyx [7]

Answer:

The code is witten in Java and given in the explanation section.

Using a Scanner object we receive a the user's input and with the System.out.println we output the variable

Explanation:

import java.util.Scanner;

public class VariableOutput{

   public static void main (String [] args){

       Scanner input = new Scanner(System.in);

       System.out.println("Enter an Integer 15 or 40");

       int numObjects = input.nextInt();

       System.out.println("You entered the number "+numObjects);

   }

}

7 0
2 years ago
Robyn needs to ensure that a command she frequently uses is added to the Quick Access toolbar. This command is not found in the
Fynjy0 [20]

Answer: c- Access Quick Access commands using the More button.

Explanation:

8 0
2 years ago
How to get the lightning round in dares of eternity
murzikaleks [220]

Based on the design and experience of Dares of eternity 2, to get the lightning round requires <u>playing the legend difficulty level and playing efficiently</u>.

According to the Dares of Eternity design team leader, Tom Farnsworth, "the Lightning Round has a random chance to occur at the end of any Dares of Eternity run."

Tom Farnsworth concluded that playing efficiently improves the chance a little and playing the Legend difficulty increases its chance of occurrence as well.

Hence, in this case, it is concluded that the correct answer is "<u>playing the legend difficulty </u>level<u> and playing efficiently</u>."

Learn more about Video games here: brainly.com/question/14468591

6 0
1 year ago
A video game character prefers to take enemies on from a distance. What skills might such a character have?
Lynna [10]

The answer is Archery

7 0
2 years ago
Write a program that asks the user for the name of a text file. the program should display the last 10 lines of the file on the
Tom [10]
The only thing that I know is that after you input the text file, it could either:
-save those lines as a variable
-display the text file
However any more would be dependent on the language.
3 0
2 years ago
Other questions:
  • The ________ is(are) used to display information on the computer's screen.
    13·1 answer
  • What acronym is another name for static electricity, which can damage chips and destroy motherboards?
    5·1 answer
  • Which of the following items is not found on a web page?
    9·1 answer
  • Suppose company A wants to develop a program that duplicates the functionality of a programm by company B. Describe how company
    8·1 answer
  • Lee finishes entering all the data. Next, he wants to format the header row so it is easier to read and stands out from the rest
    11·1 answer
  • A personal idea must be identified with a
    14·2 answers
  • Devices which are used to receive data from central processing unit are classified as
    11·1 answer
  • Classify the functions of dhcp and dns protocols​
    14·1 answer
  • Assume we have two lists, list A and list B. List A contains the numbers [20,10,20], while list B contains the numbers [40,10,30
    10·1 answer
  • An app ________ is a website that provides access to specific mobile apps that can be downloaded either for a nominal fee or fre
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!