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
KatRina [158]
4 years ago
10

Write a function that accepts a list as an argument (assume the list contains integers) and returns the total of the values in t

he list.
Computers and Technology
1 answer:
Serga [27]4 years ago
8 0

Answer:

def listSum(mylist):

   sum =0

   for item in range(0,len(mylist)):

       sum=sum+mylist[item]

   print(sum)

Explanation:

Using the Python programming language, I defined a function as listSum that accepts a list as a parameter and returns the sum of the elements in the list.

The most important logic here is defining the range of elements in the list not to exceed the length of the list using the len function. Then using a for statement, we loop through each element and add them up to a sum variable initially assigned the value of 0.

You might be interested in
what program searches the Internet for specified keywords and returns a list of the pages where the keywords were found
Andrews [41]

google does that, and yahoo, and bing. it would be a search engine, or browser.

5 0
3 years ago
Which is an internet service?<br><br> Antivirus<br> Chat<br> Firewall<br> Router
leva [86]

Answer:

Router

Explanation:

The others are not related to internet per se.

8 0
4 years ago
Read 2 more answers
The inability of BAE Automated Systems to create an automated baggage handling system led to a significant delay in the opening
Sergeu [11.5K]

Answer:

True

Explanation:

Airport was truly opened outside the city of Denver, because of the faults in BAE automated system.

6 0
4 years ago
The best resolution for photos to be used in web pages viewed over slow telephone line is:
meriva
The more the image resolution would be the more storage it needs. If you think about it when a website tries to load a large image it takes longer than loading a smaller one. Hence, if you have a slow telephone line and need your images to be displayed (loaded) faster, then you have to go with the smallest resolution (the smallest storage).

In a nutshell, your answer will be d) 320x240

Note: 320 x 240 is the dimensions of the image (width x height) and those numbers are measured in pixels which is the unit of measuring images, display screens,...etc. i.e. this image is 320 pixels in width and 240 pixels in height
3 0
3 years ago
Which Internet of Things (IoT) challenge involves the difficulty of developing and implementing protocols that allow devices to
Firlakuza [10]

Answer: Interoperability

Explanation:

Interoperability is the skill in system that helps in communicating and exchanging information and services with each other.It can be used in various industries and platform as the task is performed without considering specification and technical build.

  • IoT(Internet of things) interoperability faces various challenges like standardization, incompatibility etc.Several steps are taken to for IoT equipment to deal with servers, platforms,applications, network etc.
  • Interoperability provides appropriate measure for enhancement of IoT devices .
6 0
3 years ago
Other questions:
  • Computer a has an overall cpi of 1.3 and can be run at a clock rate of 600mhz. computer b has a cpi of 2.5 and can be run at a c
    11·1 answer
  • What are the main types of computer software?
    5·2 answers
  • In programming, what is a string?
    8·2 answers
  • What are two major techniques involved in green computing
    10·1 answer
  • What format should a cover letter be in?
    13·2 answers
  • What are the basic features of Usenet group
    15·1 answer
  • List the steps to create a new folder in windows
    13·1 answer
  • Write a function that simulates the roll of a six-sided dice. The name of the function is rollDice. The function accepts no para
    8·1 answer
  • Which of the following identifies the most appropriate courses to take in high school for someone interested in becoming a mecha
    9·1 answer
  • Where would you click to change the<br><br>Screen Saver?​
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!