subject

1 Define a function and call it calc_avg ( ) 2 The function must accept one argument. Call the argument my myList.
3 The list must be a list of integers values such as: L1 = [10, 22, 78, 56]
4 Call the function calc_avg ( L1 ) in a way that the list L1 is passed as an argument
The function must calculate the average of the integer values in the list and print the results.

You can use the built-in function len (listname).

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 17:00, dylancasebere
In microsoft word, you can change the look of paragraphs by:
Answers: 1
image
Computers and Technology, 23.06.2019 06:30, arguellesjavier15
Who can provide you with a new password when you have forgotten your old one? your provide you with a new password in case you forget your old one.
Answers: 3
image
Computers and Technology, 23.06.2019 13:30, alannaamarriee
Jace needs to answer a question on square roots to win a quiz. how can he use a spreadsheet to find the square root of 786? a. use the functions round and count b. create a table and chart c. use the function sqrt d. use the function now
Answers: 3
image
Computers and Technology, 23.06.2019 16:30, isaiahhuettnerowgg8d
What is one reason why indoor air pollution has become an increasing problem.
Answers: 1
You know the right answer?
1 Define a function and call it calc_avg ( ) 2 The function must accept one argument. Call the argu...

Questions in other subjects:

Konu
Social Studies, 26.03.2020 20:18