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.

Input

A list of integers

Output

An average of values in the list

Sample Input

[1, 4, 9, 10, 23]

Sample Output

9.4

Get hands-on with 1400+ tech skills courses.