Challenge 3: Averaging Values in a List

In this challenge, you are required to average values in a list in Python.

Problem Statement

Given a getAverage() function, create a list named l with the following values:

[1, 4, 9, 10, 23]

Calculate the average value of all values in the list.


A list of integers


An average of values in the list

Sample Input

[1, 4, 9, 10, 23]

Sample Output


Get hands-on with 1000+ tech skills courses.