As you progress through Boot.dev, you might find yourself wanting to:
Your spellbook solves these problems.
It's a powerful tool that lets you search any lesson on Boot.dev. In addition, as you complete lessons, you'll automatically unlock spellbook pages - handy reference pages that can also be searched. So, if you know what you're looking for, use your spellbook before chatting with Boots, using it never costs items or XP!
Competitive Fantasy Quest players – Ballan's Ballers – have won all their games in the elimination round of the tournament. They're now in the finals! Calculate the average score of their 4 games and store it in the average_score variable.
The average (or "mean") is calculated by adding up all the numbers and dividing by how many numbers there are. Which means first we need to add up all the scores, then divide by 4.
Let's use our spellbook to recall the syntax we need:
Complete the lesson using your spellbook as a reference