Friday, January 24, 2020

2.4 Conditional Execution of Code (2020)

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
2) Read Section 2.3 Conditional execution

  Due Monday  January 27, 2020:
  1. Lab2.4_RollerCoster
  2. Read Section 2.3 Conditional execution
  3. Read Section 2.4 on lists

No comments:

Post a Comment

Blog information move to Google Doc

Hello All, Moving forward, please find all information about the class that you used to find on a live google doc agenda. The link is foun...