Skip to content

Study Hub

Study Guides

This pupil-friendly study guide includes a unit summary, clear notes, common mistakes, and quick questions with answers.

Year 8 - Computing

Using selection

Introduction to Python programming

Unit Summary

This unit introduces pupils to text-based programming with Python. Pupils start with programs involving input and output, and gradually move on to using arithmetic operations, randomness, selection, and iteration. Pupils will consolidate these skills in a project at the end of the unit.

Lesson Summary

You will learn to write selection statements that make decisions about which path a program will follow.

Key Notes

  • Selection is used when there is more than one possible path for a program to follow.
  • Relational operators can be used to compare the values of expressions.
  • Expressions formed using relational operators evaluate to either True or False.
  • Logical expressions can be built using a combination of relational and logical operators.

Vocabulary To Learn

  • relational operator: compare two values and produce the result of True or False
  • condition: an expression that evaluates to True or False
  • selection: used when there is more than one possible path for a program to follow
  • logical expression: an expression that combines relational and logical operators

Common Mistakes To Avoid

  • The = symbol is used to check if a variable is equal to a value (comparison).

3 Quick Questions (With Answers)

1. Describe the system or process from this lesson in clear steps.

Selection is used when there is more than one possible path for a program to follow. Relational operators can be used to compare the values of expressions.

2. Define this computing term and give one practical example. 'relational operator'

compare two values and produce the result of True or False. Add one real device or system example to prove understanding.

3. Correct this common computing misconception.

Mistake: The = symbol is used to check if a variable is equal to a value (comparison). Correction: The = symbol is used in Python for assignment. The == operator is used for comparison.

More Lessons In This Unit

Browse all guides in the Year 8 Computing guide library.