Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a function that returns the average of 4 float numbers. Sample input- 12.90 13.45 34.00 76.78 Sample output 34.2825 What I have so far.

Write a function that returns the average of 4 float numbers.

Sample input-

12.90 13.45 34.00 76.78

Sample output

34.2825

What I have so far.

def average(lst): return avg

counter = 0 lst = [ ] while counter != 4: a = float(input()) lst.append(a) counter = counter + 1 print(average(lst))

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DATABASE Administrator Make A Difference

Authors: Mohciine Elmourabit

1st Edition

B0CGM7XG75, 978-1722657802

More Books

Students also viewed these Databases questions

Question

What is meant by organisational theory ?

Answered: 1 week ago

Question

What is meant by decentralisation of authority ?

Answered: 1 week ago

Question

Briefly explain the qualities of an able supervisor

Answered: 1 week ago

Question

Define policy making?

Answered: 1 week ago

Question

Define co-ordination?

Answered: 1 week ago

Question

8. Explain the difference between translation and interpretation.

Answered: 1 week ago

Question

10. Discuss the complexities of language policies.

Answered: 1 week ago

Question

1. Understand how verbal and nonverbal communication differ.

Answered: 1 week ago