Hello there, I have a question regarding the output I’m getting in this loop. How come when I enter “if age > 21” it prints the numbers under 21 when “age” in the statement is greater than?
continue
doesn’t mean continue to the next statement(s) in the body of the loop. It means skip the remaining statement(s) and continue to the next iteration of the loop.
See documentation for The continue
statement
2 Likes