Lesson 7 – Python Selection

Unlock Coding Decisions: Discover ‘IF’, ‘ELSE’, and ‘ELIF’ tools in programming. Make choices like a pro, guiding program actions effectively.

Lesson resources include;

  • Lesson plan
  • Lesson powerpoint
  • Coding video demonstrations
  • Lesson task worksheets
  • Lesson task worksheet answers
  • Homework task
  • Homework task answer sheet

Intended age range 14+

In this lesson your students will explore Coding Choices: This lesson introduces decision-making in programming. Your classes will learn about computer decisions and learn about ‘IF’, ‘ELSE’, and ‘ELIF’ conditions for making choices in code. We also cover using strings for choices. Tasks help practice what’s learned. Later, we tackle multi-choice scenarios with ‘IF ELIF ELSE’ and use videos to understand complex parts.

Exploring ‘IF’, ‘ELSE’, and ‘ELIF’: These coding tools let computers make decisions. Think of ‘IF’ like a yes-or-no question – if the answer is yes, the code runs; if no, it skips. ‘ELSE’ is like a backup plan – if ‘IF’ is no, ‘ELSE’ runs. ‘ELIF’ is an extension of ‘IF’, allowing multiple options. Imagine a menu – ‘IF’ is the main choice, ‘ELIF’ is extra choices, and ‘ELSE’ is the ‘if all else fails’ choice. This lesson makes these concepts clear with examples and tasks, boosting your ability to guide a program’s actions.

Editable resources in this lesson include, Teachers lesson plan, teaching slides, coding video tutorials to support learning, lesson task worksheet with answers and homework task worksheet with answers.

Save hours of planning

Ready-to-teach lesson

Plus get your personal 20% discount code (valid for 5 days)

Enter your email below to get a free lesson plan, slide deck, student worksheets, STL files, and homework tasks — all ready to teach. Check your email for your discount code

*After entering your email, we will also send you more information about our curriculum and offers. You can unsubscribe at anytime and still keep the free lesson.

NEW: StudyLayers Engineering Design | 30-Day FREE School Evaluation | No Credit Card Required →
x