How to find the average of a list in Python

Finding the average of a list returns the average of the numbers in the list.

Solution for How to find the average of a list in Python : You can use sum() and len() to find the average of a list Call sum(a_list) and len(a_list) to return the sum and length of a_list respectively. Divide list_sum by list_length to return the average of the numbers in a_list.


how-to-find-the-average-of-a-list-in-python