Computers and Technology
Computers and Technology, 05.10.2019 13:30, hokamidat

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

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 09:30, ranmmm
The place where the extended axis of the earth would touch the celestial sphere is called the celestial
Answers: 1
image
Computers and Technology, 23.06.2019 20:40, aurikmah2005
Instruction active describing list features which statements accurately describe the features of word that are used to create lists? check all that apply. the tab key can be used to create a sublist. the enter key can be used to add an item to a list. the numbering feature allows for the use of letters in a list. the numbering feature can change the numbers to bullets in a list. the multilevel list feature provides options for different levels in a list.
Answers: 2
image
Computers and Technology, 24.06.2019 16:50, Ameilasmickle15
How many types of string types does python support?
Answers: 1
image
Computers and Technology, 25.06.2019 01:30, jeff6284
Ashort circuit locator should be periodically run along the cords used in a shop to check for shorts and open circuits. a.)true b.)false
Answers: 2
Do you know the correct answer?
Write a function called average() that takes a single parameter, a list of numeric values. the funct...

Questions in other subjects:

Konu
Mathematics, 26.01.2020 04:31
Konu
Biology, 26.01.2020 04:31