0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 5
click for more info
No active XP Potion
Accept a Quest
Login to submit answers
As you progress through Boot.dev, you might find yourself wanting to:
Your spellbook solves these problems.
It's a searchable cheatsheet of everything you've learned on Boot.dev. As you complete lessons, you'll automatically unlock new pages in your spellbook that can be searched at any time. So, if you know what you're looking for, use your spellbook before chatting with Boots, because using the spellbook costs no 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
Focus Editor
Alt+Shift+]
Login to Submit
Login to Run
Login to view solution