Week 5 ยท 45-60 min

Conditionals (if/else)

Week Summary

A quick preview of the main ideas in this week before you begin the slides.

  • What Is a Conditional?
  • The if Statement
  • The else Statement
  • The elif Statement

Glossary

Review these key terms before starting this week. They are kept simple so students can learn the new vocabulary before moving into the slides.

What Is a Conditional?
What Is a Conditional?
The if Statement
The if Statement
The else Statement
The else Statement
Slide 1๐Ÿ’ก

What Is a Conditional?

Learning goal

Control program flow using conditional logic.

Read one card at a time. Focus on the main idea first, then look at the visual on the right to help it stick.

Conditionals let programs make decisions.

Code runs only when a condition is true.

Conditions are based on Boolean expressions.

This mirrors real-world decision-making.

Conditionals are a core building block of most programs.

Remember

Conditionals are how programs choose different actions in different situations.

What Is a Conditional?

What Is a Conditional?

Slide 1 of 8

Use arrows or dots to move through the lesson

Practice

  1. Write 2-3 sentences about what you learned this week.

Coming Next Week: Next: Loops (for and while)