Lesson 2.4 Conditionals
Goals:
1) Define and identify: if, else, elif, conditionals, flow of control
2) Create chaining if statements
3) Understand how conditional statements alter the flow of control of a program
Summary:
- Conditional Statement Definition: Also known as an if statement. An if statement checks conditions and change the behavior of the program accordingly.
- Conditional statements:
- if statement chooses between executing code or not
- if-else statement provides a choice between two code paths
- if-elif-else statement provides a choice between 3 or more code paths
To Do after Lesson:
1)
Lab 2.4 - Can I Ride the Roller Coaster? (On Repl)

- Name your file LastName_FirstName_Lab2.4_RollerCoaster
- Lab2.4_RollerCoster
- Read Section 2.3 Conditional execution
- Read Section 2.4 on lists
No comments:
Post a Comment