SyntaxFix
Write A Post
Hire A Developer
Questions
Another simple solution too
arr = [0,4,8,2,5,0,2,6] arr.sum(0.0) / arr.size