Compare the averages of my lists – codegolf.stackexchange.com

Getting the average of a list (e.g [2,6,7]) Get the length of the list: [2,6,7] -> 3 Sum the umbers in the list: 2 + 6 + 7 = 15. Divide the sum by their count: 15 / 3 = 5. You should compare the ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

0 Comment to "Compare the averages of my lists – codegolf.stackexchange.com"