You can download this code by clicking the button below.
This code is now available for download.
Calculate the average of a list of numbers.
Technology Stack : Built-in functions sum(), len(), list
Code Type : Function
Code Difficulty : Intermediate
def achaive_average(numbers):
if not numbers:
return 0
return sum(numbers) / len(numbers)