Using the knowledge of computational language in python it is possible to write code that Function Description Complete the function getTotalEfficiency in the editor below.
Writting the code:def getEfficiency(li):
s=sum(li)
if s%2:
return -1
sum_half = s//2
skills_dict={}
for i in li:
if skills_dict.get(i):
skills_dict[i]+=1
else:
skills_dict[i]=1
res=0
for i,j in skills_dict.items():
key1 = i
key2 = sum_half - i
if skills_dict.get(key2):
if j == skills_dict[key2]:
res = res + j * (key1*key2)
else:
return -1
else:
return -1
return res//2
n=int(input ())
li=list(map(int,input().split(" ")))
print(getEfficiency(li))
See more about python at brainly.com/question/18502436
#SPJ1
Ivan has five workbooks open. he has arranged these files in a specific grouping so he can view them at the same time. In order to save these files i this specific order, ivan must create a----
Raster graphics allows which of the following?
(A) Limited color effects
(B) Color blending capabilities due to tiny pixels
(C) Scalable image without pixilation
(D) Layouts
Answer:
(C) Scalable image without pixilation
what is presentation software in bussiness used for
Answer:
Presentation software is a category of application software that is specifically designed to allow users to create a presentation of ideas by stringing together text, images and audio/video.
Explanation:
Answer:
Presentation software is a category of application software that is specifically designed to allow users to create a presentation of ideas by stringing together text, images and audio/video.
Explanation:
You have a small network at home that is connected to the internet. On your home network, you have a server with the IP address of 192.168.55.199/16. You have a single public address that is shared by all hosts on your private network. You want to configure the server as a web server and allow internet hosts to contact the server to browse a personal website. What should you use to allow access
Static NAT is the answer,. :) great question BTW!
Ellie is conducting formal research for a new design project and wants to find demographic information. What source is considered most credible to use for her research?
Wikipedia articles
competitor websites
government data
magazine opinion pieces
Answer:
Its governmental data
Explanation:
A cheetah has a mass of 50kg and can accelerate at 10 m/s2. This is equal to 500 Newtons which is the force the cheetah creates to run. Let's calculate how much work the cheetah does and how much power it generates when it runs 50 meters in 3 seconds.
Step 1: Determine how much work is done (measured in joules).
Multiply the force by the distance 500N×50meters= _______ joules
Step 2: Determine the power (measured in Watts).
Divide the work by the time it took to do the work 25,000joules÷3s.= _______ watts
Answer:
often, work done= Force<<* distance
so work done=500N * 50m
work done=25000J
also, Power=work done/Time taken
Power=25000J/3sec
Power=8333.333.....
How does a filmmaker decide which events to include in a documentary?
Answer:
A documentary is a film based on facts in which the maker tries to portray an aspect of reality, such as politics, science, society or history, nature or the personal perception of the documentary maker.
Documentaries are informative in nature. Sometimes documentaries attempt to provide an objective picture of a subject. There is a lot of debate about what is objective, because the documentary maker chooses his images from reality, which is in itself a subjective act. In a creative author's documentary, the emphasis is on the subjective vision of the filmmaker.
Therefore, the documentary maker will select the events to include in the documentary according to the approach he or she wants to give to it, be it objective or subjective.
Write the purpose of using computer network
Answer:
sharing resources and data between computer systems. Those shared resources would include that of data storage, printers and other devices.
Explanation:
Answer:
Explanation:Computer networks help you to connect with multiple computers together to send and receive information. Switches work as a controller which connects computers, printers, and other hardware devices. Routers help you to connect with multiple networks. It enables you to share a single internet connection and saves money.
Sistema binario, realizar el pasaje de binario a decimal; 00110011 11101100 11100001 11001100 10010101 11001111 10000001 10001100 11111111 01111110 11110101 00101000 11111100 00000011 00001111 11100000 11000011 10000000 11111000 00111100
Explanation:
MULTIPLY EACH OF THE NUMBER WITH 2 THEN RAISE TO THE POWER OF THE NUMBER'S POSITION
EXAMPLE: 1 X 2'5
importance of animal husbandry for human society
Answer:
Animal husbandry currently focuses on health, reproduction, and security. We have built efficient and hygienic systems, which have been optimized commercially for production.
Explanation:
The Find and _______ commands allow you to easily locate and replace text. Bookmarks allow you to easily navigate to other parts of a document while _______ allow you to easily navigate to places within or outside the document. Use the _______ _______ to find out if your document contains personal information and comments. If the person receiving your document has a pre-2010 version of Microsoft Word, it makes sense to use the _______ _______. To make sure your document can be read by devices for the visually impaired, run the _______ _______.
Answer:
(a): Replace
(b): Hyperlinks
(c): Document Inspector
(d): Compatibility checker
(e): Accessibility checker
Explanation:
You will get the brief explanation of what each of the answers in the answer section does, when you complete the blanks with the answers.
However, further explanation is as follows;
(a): The find and replace tool or command allows the user to quickly replace a certain character or word or group of words with another character or word or group of words.
(b): Hyperlinks are used to link to a new document entirely or a point in the current document. Hyperlinks in Microsoft Office Word, are often in blue, and they are always double underlined.
(c): Document inspector checks hidden data such as personal information.
(d): Compatibility checker checks if a Word document is compatible with a previous edition of Microsoft Office Word.
(e): Accessibility checker checks if the people living with disabilities can use the Word document without issues.
The correct answer for each of the blanks in the given paragraph about commands and tools in computer are;
REPLACEHYPERLINKSDOCUMENT INSPECTOR COMPATIBILITY CHECKERACCESSIBILITY CHECKERA) The commands that allows the user to quickly locate and replace a text are called find and replace commands because they are used to replace a certain character or text or group of texts with another.
B) The means by which you are allowed to easily navigate to places within or outside the document is called Hyperlinks. This is because that are used to give us a link to a new document or a related one outside of the current document.
C) The tool used to find out if your document contains personal information and comments is called Document inspector. This is because it aids in checking personal information and other hidden data information.
D) The tool to use if the person receiving your document has a pre-2010 version of Microsoft Word, is called Compatibility checker. This is because a compatibility checker would help to find out if a particular Word document is compatible with a previous version of Microsoft Word.
E) The tool to run to make sure your document can be read by devices for the visually impaired is called Accessibility checker as it has inbuilt codes to assist in checking if the document can be effectively utilized by people living with disabilities.
Read more about tools and commands in Microsoft Word at; https://brainly.com/question/1323179
PLS HELP ME I NEED HELP WILL GIVE BRAINLIEST
For what purpose is IT used in business?
Answer:
Technology is used in various ways; businesses can use technology in manufacturing, improving customer care, transportation, human resource management, business communication, use technology to improve their services or products as a way of gaining competitive advantage .
Answer:
Technology is used in various ways; businesses can use technology in manufacturing, improving customer care, transportation, human resource management, business communication, use technology to improve their services or products as a way of gaining competitive advantage .
Explanation:
BRAILIEST PLZ!
Choose the correct term to complete the sentence.
AUPs are also known as ______.
email policies
electronic conduct
standard policies
company policies
Answer:email policy
Explanation:
When entering information for a new contact in the address book, Outlook will automatically create a _____. A. Invitation B. Response email C. Business card D. Calender
is someone using social media
In your email software the address book allows you to
To put it simple, an Address Book is basically where you can store peoples names, addresses and most importantly emails so you can easily contact them. Its pretty much like your contacts on your phone.
Does anyone know this?
Answer:
DOCX merupakan file Microsoft Word Open XML Format Document. Ya, ini merupakan file yang tercipta dari pembuatan dokumen di Microsoft Word, aplikasi pembuatan teks bikinan Microsoft. File dengan ekstensi DOCX berbasiskan XML dan bisa saja mengandung teks, objek, style, formating, dan gambar.
What is the difference between PowerPoint and Outlook?
PowerPoint is a presentation program; Outlook is a personal information management application.
Outlook is a presentation program; PowerPoint is a personal information management application.
PowerPoint is a program that lets you create, edit, format, and print written documents; Outlook is a computer application that uses a grid system to organize and manipulate data.
Outlook is a program that lets you create, edit, format, and print written documents; PowerPoint is a computer application that uses a grid system to organize and manipulate data.
Answer:
PowerPoint is a presentation program; Outlook is a personal information management application.
Explanation:
Powerpoint is the program used in presentations where slides designed and then shown to the audience.
Outlook is used to display various types of personal information like calendar appointments and emails.
Which range function creates the following list of numbers?
76 74 72 70 68 66 64 62
Answer:
they look like even number
Explanation:
2 4 6 8 10 12 -------seeeeee but not hundred percent sure but plz put me in brainlist
Physical Geography of the Middle East
Answer:
Explanation:
He’s wright SS7G5 The student will locate selected features in
Southwestern Asia (Middle East).
a. Locate on a world and regional political-physical map:
Euphrates River, Jordan River, Tigris River, Suez Canal,
Persian Gulf, Strait of Hormuz, Arabian Sea, Red Sea, and
Gaza Strip.
b. Locate on a world and regional political-physical map the
nations of Afghanistan, Iran, Iraq, Israel, Saudi Arabia, and
Turkey
please help thank you !!!
hi idont see your question unfortunattely sorry
Answer:
The answer is C
Explanation:
The answer is C
Note that common skills are listed toward the top and less common skills are listed toward the bottom. According to O*NET, what are some common skills needed by Accountants? Select four options
mathematics
reading comprehension
equipment maintenance
quality control analysis
active listening
writing
Answer:
A, B, E and F Brainliest please
Explanation:
Write a informational paragraph that compares and contrast climate and weather include specific details for each
Answer:
The main difference between weather and climate refers to their temporal extension, that is, while weather refers to the climatic and meteorological conditions in the short term (rain forecasts, temperatures, atmospheric pressure, etc., which are going to happen in the next few days), the climate is a compilation of all these conditions and their averaging, to account for long-term weather conditions (thus, for example, if in December there is an average temperature of 0ºC, or the amount of snow that usually accumulates in that month, etc., that is, it is a much more macro look of what the climate is in a certain territory).
im timed!!!!!!!!!!!!!!!!!!
I NEED HELP ASAP
THANK YOU SO MUCH
Answer:
C.
Explanation:
Write a program whose input is two integers, and whose output is the first integer and subsequent increments of 5 as long as the value is less than or equal to the second integer C++
Answer:
#include <iostream>
using namespace std;
int main() {
int start, end;
cout << "Enter start number: ";
cin >> start;
cout << "Enter end number: ";
cin >> end;
for(int n=start; n<=end; n+=5) {
cout << n << " ";
}
}
Explanation:
I output the numbers space separated.
SOMEONE PLS HELP ME
Alright so in problem solving class which I think is basically compsci we are working with Karel and conditional loops. The world we are using rn is called cleanUp. I need someone who is good at this stuff to help me ASAP!!!!!!! It’s due at 8:30 am tomorrow!!
You are part of a development team that needs to adopt an integrated development environment tool to increase programmer productivity. The team narrowed the options down to two. One is open-source; the other will require an expensive site license. The tool you choose must be reliable, stable and well maintained. Which of the following could be a disadvantage for you to choose open-source, and thus a compelling enough reason to purchase the licensed software instead of using the open-source solution?
A. Your developers will have ready access to the source code.
B. The open-source solution is in the public domain.
C. The code for the open-source solution can be viewed by a community of open-source developers.
D. Maintenance of an open-source solution relies on developers who volunteer to work on the code.
Answer:
honestly I think the other one is correct
Explanation:
True or False: The proze for winning the NHL champioship is called the
"James Norris Trophy."
True or False
What is an example of a composite key in a database table?
InvoiceID
CustomerID
ProductID
OrderID + ProductID
Answer:
b
Explanation:
OrderID + ProductID is an example of a composite key in a database table. The correct option is 4.
What is composite key?A composite key is a key in a database table that consists of two or more columns that uniquely identify each row.
In a database table, a composite key is the combination of OrderID and ProductID in a table that tracks sales transactions.
Because a single order can contain multiple products and multiple orders can contain the same product, neither column can uniquely identify a row by itself.
However, by combining the two columns, each row can be uniquely identified, ensuring that the data is accurate and complete.
Similarly, a combination of CustomerID and ProductID might be used in a sales system to track the products purchased by each customer.
Thus, the correct option is 4.
For more details regarding composite key, visit:
https://brainly.com/question/10167757
#SPJ3