Average Function
Problem: Average Function
Implement:
def average(table):
table is a list of numbers. Return its arithmetic mean, or return 0 when the list is empty.
Examples:
avera...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
