Practice: Conditionals
💡 This is your chance to put what you’ve learned into action.
Try solving these practice challenges to check that you understand the concepts.
The solutions to each challenge are available, and you can view a video of the solution below each challenge.
- Try to go through the whole challenge without using the solution.
- If you can’t do the challenge without looking the solution, it means you don’t understand the material well enough yet.
- Try the next practice challenges without looking at the solution. If you need more practice challenges, reach out on Discord.
Money for Books
This is 1 of the assignment problems for this week. You can check your solution against the solution provided here. The video also walks you through the process of arriving at your solution. Your code doesn't have to look exactly like what is shown here for it to be correct. There are many other correct solutions.
📚 You'll write a program to help someone figure out if they have enough money for all the books they want to buy using if/else statements.
Follow the link below to attempt this exercise (that attempt can be submitted as part of your required assignment)
Watch the video to see the full solution
Quick Draw
In this exercise, you will implement a quick draw game to see how fast the user's reactions are.