• Online, Self-Paced
Course Description

In this Challenge Lab, you will create branching logic in Python. First, you will define an if statement that evaluates whether a number is even or odd by using the modulo operator, and then you will generate different outcomes based on the result of the evaluation. Next, you will determine whether a value is part of a list by using an if else statement, and then you will return different values based on the evaluation of the conditions in the if else statement. Finally, you will evaluate a condition in an if statement by using the logical and operator, and then you will evaluate a different condition in an if statement by using the logical or operator. 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 create branching logic in Python. First, you will define an if statement that evaluates whether a number is even or odd by using the modulo operator, and then you will generate different outcomes based on the result of the evaluation. Next, you will determine whether a value is part of a list by using an if else statement, and then you will return different values based on the evaluation of the conditions in the if else statement. Finally, you will evaluate a condition in an if statement by using the logical and operator, and then you will evaluate a different condition in an if statement by using the logical or operator. 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 NICE Framework Task, Knowledge, and Skill statements identified within the indicated NICE Framework component(s):

Specialty Areas

  • Software Development

Feedback

If you would like to provide feedback for this course, please e-mail the NICCS SO at NICCS@hq.dhs.gov.