SyntaxFix
Write A Post
Hire A Developer
Questions
I believe the simplest answer is
list.reduce(:+).to_f / list.size