Continue From the Beginning (Exercise)
00:00
Let’s do another control flow exercise based on looping keywords. In this task, you should use continue
to write a program that loops over the numbers 1
to 50
and prints all the numbers that are not multiples of 3
.
00:14
What can you use to figure out what’s a multiple of a number? And then also you’re going to need a loop in here. And how can you use this continue
keyword to not do something when a certain condition is met? Okay? Think about this.
00:29 Try to write your own solution, and then move on to the next lesson where I will show you an example solution.
Become a Member to join the conversation.