

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 6
click for more info
Not enough gems
Cost: 6 gems
1: Functions
incomplete
2: Function Review
incomplete
3: Multiple Parameters
incomplete
4: Printing vs. Returning
incomplete
5: Where to Declare Functions
incomplete
6: Order of Functions
incomplete
7: Community
incomplete
8: Boots Interview
incomplete
9: Solutions
incomplete
10: None Return
incomplete
11: Multiple Return Values
incomplete
12: Parameters vs. Arguments
incomplete
13: Default Values
incomplete
14: Curse
incomplete
15: The Training Grounds
incomplete
16: Enchant and Attack
incomplete
17: Archmage
incomplete
Back
ctrl+,
Next
ctrl+.
This lesson's interactive features are locked, please to keep using them
Okay, I just need to tell you about one last resource you have when you're stuck. Every lesson on Boot.dev has an instructor solution that you can view!
Like Boots, solutions come at a cost... a steeper one in fact. If you view a solution before you complete the lesson, you'll lose all the XP for that lesson. Well, unless you use a seer stone – in which case you won't lose any XP. Though you will be down a seer stone.
For this lesson only, you can claim enough gems to buy a seer stone.
Just like it's free to use Boots after a lesson is complete, viewing a solution after you've completed the lesson is free as well. In fact, we encourage you to frequently check your work against ours, often times there's something to learn from the differences.
View solutions sparingly. If you find yourself using the solution before completion more than about once per chapter you should consider slowing down, asking for help in the discord, and even resetting lessons and trying them again to build a stronger foundation.
Enough about solution mechanics, let's write more code.
We need to display the current time to our players. The problem is that the time is stored as a number of hours, but we want to display it as a number of seconds. There are 60 seconds in a minute, but how many are in an hour?
Complete the hours_to_seconds function. It should convert hours to seconds and return the result.