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: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 02:00
The word ‘play’ comes with many different interpretations and a variety of definitions. discuss some of the various meanings tied to the word play. why is the concept of play thought to be an important addition to the workplace? do some (brief) research online and give an example of how play in the workplace is being done right.
Answers: 2
question
Computers and Technology, 22.06.2019 09:00
What is one way in which tablets differ from laptops and notebooks? tablets are designed for touch-based interaction. tablets are designed to be used as desktops. tablets are designed for input via a keyboard and mouse. tablets are designed to be larger than laptops.
Answers: 1
question
Computers and Technology, 24.06.2019 01:30
Hazel has just finished adding pictures to her holiday newsletter. she decides to crop an image. what is cropping an image?
Answers: 1
question
Computers and Technology, 24.06.2019 04:30
Fall protection, confined space entry procedures, controlled noise levels, and protection from chemical hazards are some of the things that contribute to a safe and
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 ar...
Questions
question
Physics, 19.12.2020 06:20
question
Mathematics, 19.12.2020 06:20
question
Mathematics, 19.12.2020 06:20
question
Mathematics, 19.12.2020 06:20
question
Business, 19.12.2020 06:20
question
Chemistry, 19.12.2020 06:20
Questions on the website: 13722367