You can download this code by clicking the button below.
This code is now available for download.
Calculate the average score of a series of scores.
Technology Stack : sum(), len(), arithmetic operations
Code Type : Math
Code Difficulty : Beginner
def get_average_score(scores):
total = sum(scores)
count = len(scores)
return total / count if count > 0 else 0