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
garri49 [273]
3 years ago
11

write a function named list_total that accepts a list as an argument (assume the list contains integers) and returns the cumulat

ive total of the values in the list
Computers and Technology
1 answer:
lutik1710 [3]3 years ago
3 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
They convert energy from the Sun into usable chemical energy by the process of photosynthesis. They are
Alchen [17]
Photosynthetic organisms are producers because they are producing chemical energy useable by living things.
4 0
3 years ago
Hello im bored wanna talk?
bazaltina [42]

Answer:

sure what's up

Explanation:

8 0
3 years ago
Read 2 more answers
9. Government and corporate officials concerned about security threats do not bring their own cell phones or laptops when travel
tatuchka [14]

Answer:

True

Explanation:

It is known as Don-Not-Carry rules are implemmented to avoid

-Unauthorized full disk copies (it have been made while the laptop owner was out of the hotel room on overseas travel)

-Laptops steals

- Monitoring by third parties of wireless using.

3 0
3 years ago
Thank you very much for your email. ...... was very interesting​
Fynjy0 [20]

Answer:

hi everyone how was your day :)

Explanation:

6 0
4 years ago
Which of the following statements about BLE is not true? a. BLE has a two-way, push-pull communication capability b. BLE uses le
Veronika [31]

Answer:

Only Apple iPhones can use BLE

Explanation:

Bluetooth low energy is a wireless personal area network technology and it has all the features mention in the option aside from option C " Only Apple iPhones can use BLE". Because most Android phones running 4.4 and above also support same technology.  

8 0
3 years ago
Other questions:
  • "which programming language is used within html documents to trigger interactive features?"
    10·1 answer
  • This list represents the horses leading in a race: leadHorses ← ["Justify", "Bravazo", "Good Magic", "Tenfold", "Lone Sailor", "
    7·1 answer
  • ENG103 DISCUSSION BOARD 6
    15·1 answer
  • Use the image above to determine which toolbars will be displayed in the program you are using. SELECT ALL THAT APPLY
    11·2 answers
  • For this project you have been asked to write a program for a local store owner. The store owner wants to keep a record of the n
    5·1 answer
  • Which term describes the order of arrangement of files and folders on a computer
    11·1 answer
  • Write a function strlen_recursive which accepts a pointer to a string and recursively counts the number of characters in the pro
    6·1 answer
  • Jemima is reviewing her history report and notices that her headings are not formatted the same throughout the
    7·1 answer
  • PLEASE ANSWER
    9·1 answer
  • Rosa has received reports by several users that one of the Linux servers is no longer accessible. She is able to remote into the
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!