Please enable JavaScript to use CodeHS

AP Computer Science Principles in Python

Lesson 4.4 If Statements

Description

In this lesson, students learn about if statements as a way to make decisions and execute specific code depending on the validity of a condition.


Objective

Students will be able to:

  • Explain the purpose of if statements
  • Create their own if statements to selective choose which code is executed in their programs