• Online, Self-Paced
Course Description

In this challenge lab, you will manage the flow of execution in your code by using looping structures. First, you will iterate over a range by using a for loop, and then you will define an if statement in a for loop. Next, you will stop the iteration of a for loop by using a break statement, and then you will manage the output of the for loop by using an else clause. Finally, you will add a return statement to a function, and then you will control the flow in a for loop by using a continue statement. Note: Once you begin the challenge lab, you will not be able to pause, save, or exit and then return to your challenge lab. Please ensure that you have set aside enough time to complete the challenge lab before you start.

Learning Objectives

In this challenge lab, you will manage the flow of execution in your code by using looping structures. First, you will iterate over a range by using a for loop, and then you will define an if statement in a for loop. Next, you will stop the iteration of a for loop by using a break statement, and then you will manage the output of the for loop by using an else clause. Finally, you will add a return statement to a function, and then you will control the flow in a for loop by using a continue statement. Note: Once you begin the challenge lab, you will not be able to pause, save, or exit and then return to your challenge lab. Please ensure that you have set aside enough time to complete the challenge lab before you start.

Framework Connections

The materials within this course focus on the Knowledge Skills and Abilities (KSAs) identified within the Specialty Areas listed below. Click to view Specialty Area details within the interactive National Cybersecurity Workforce Framework.