subject

Write a function called average() that takes a single parameter, a list of numeric values. the function should return the average of the values in the list. if the list is empty, average() should return 0.

> > > lst = [1,3,4]

> > > average(lst)

2.5

> > > average([])

0

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 23:30
Which of the following is not a symptom of chronic fatigue syndrome
Answers: 2
question
Computers and Technology, 23.06.2019 18:30
How often does colleges update the cost of attendance on their website? . a)every two years b) every four years c) every year d) every semester
Answers: 1
question
Computers and Technology, 23.06.2019 22:00
Take a critical look at three gui applications you have used—for example, a spreadsheet, a word-processing program, and a game. describe how well each conforms to the gui design guidelines listed in this chapter.
Answers: 3
question
Computers and Technology, 23.06.2019 22:40
22. sata3 allows for data transfer rates of 600 mb/s. explain why you would likely not be able to copy data from one hard drive to another at anywhere close to this speed. also, what could be upgraded on the computer to achieve transfer speeds closer to 600 mb/s
Answers: 1
You know the right answer?
Write a function called average() that takes a single parameter, a list of numeric values. the funct...
Questions
question
Mathematics, 21.04.2021 23:00
question
Mathematics, 21.04.2021 23:00
question
Mathematics, 21.04.2021 23:00
question
Mathematics, 21.04.2021 23:00
question
Mathematics, 21.04.2021 23:00
question
Mathematics, 21.04.2021 23:00
Questions on the website: 13722363