Practice: Loops


💡 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 some challenges are available. You can view a video of the solution below each challenge. Try to go through the whole challenge without using the solution.

  • 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.

Write a program that prints the numbers from 1 to 100, noting the multiples of 3 and 5.

Before checking the solution, make sure you spend enough time thinking and trying. This is really how you learn and build experience.

Print Multiples

Watch the video to see the full solution.

Guess My Number

In this exercise, practice writing a number guessing game.

guess-my-number

Watch the video to see the full solution.

Scrabble Word Score

In this example, you'll practice using loops to calculate the Scrabble score of different words.

scrabble-word-score