Participants: 4,235,181 Books Pledged: 259,817,439 Books Finished: 56,102,660 Avg. Books Pledged: 61 Challenges Completed: 696,889
cleaned = blurb.lines.inject({}) do |result, line|
key, value = line.strip.split(":")
result[key.downcase] = value.strip.gsub(",", "").to_f
result
end
procent = (100/(cleaned["participants"] / cleaned["challenges completed"].to_f)).round(2)
puts "#{procent}% finished their challenge"