Computers and Technology

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).

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 24.06.2019 13:50, Estefaniamarilicolin
What does code do? a creates a text box that says "solid black" b creates a black border of any width c creates a black border 1 pixel wide
Answers: 1
image
Computers and Technology, 24.06.2019 17:40, HealTheWorld
Write a program that begins by reading in a series of positive integers on a single line of input and then computes and prints the product of those integers. integers are accepted and multiplied until the user enters an integer less than 1. this final number is not part of the product. then, the program prints the product. if the first entered number is negative or 0, the program must print β€œbad input.” and terminate immediately
Answers: 2
image
Computers and Technology, 24.06.2019 22:00, darthshot4
Iam trying to get my google account back for school and business, can someone ?
Answers: 1
image
Computers and Technology, 25.06.2019 13:00, vallhernandez13
True or false the internet is a local communication network that allows only certain computers to connect and exchange information.
Answers: 2
Do you know the correct 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
Mathematics, 19.03.2021 02:10
Konu
Mathematics, 19.03.2021 02:10
Konu
Social Studies, 19.03.2021 02:10