Answers for "find average of list via for loop python"

1

make averages on python

# app.py

def averageOfList(num):
    sumOfNumbers = 0
    for t in num:
        sumOfNumbers = sumOfNumbers + t

    avg = sumOfNumbers / len(num)
    return avg


print("The average of List is", averageOfList([19, 21, 46, 11, 18]))
Posted by: Guest on April-14-2020
0

find average of list via for loop python

1 2 3 4 5
Posted by: Guest on September-09-2021

Code answers related to "find average of list via for loop python"

Python Answers by Framework

Browse Popular Code Answers by Language