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

Working with numerical inputs

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 use arithmetic expressions to calculate values and store these values in variables in a program.

Key Notes

  • Variables are used to store and reference values.
  • An assignment is an instruction that can set a variable with a provided value.
  • Arithmetic expressions can be used to calculate values.
  • The result of an expression can be used for assignment.
  • Numerical inputs need to be converted to numbers when they are used in expressions.

Vocabulary To Learn

  • variable: a named piece of data stored in a computer's memory which can be accessed and changed by a computer program
  • operator: a symbol or word that instructs the computer to perform a specific calculation or action
  • string: a sequence of characters, e.g. letters, numbers, spaces, and other symbols
  • integer: a whole number that can be positive, negative, or zero

Common Mistakes To Avoid

  • Pupils often take user input for numerical values and then cannot perform arithmetic calculations on the data as the value is automatically stored as a string.

3 Quick Questions (With Answers)

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

Variables are used to store and reference values. An assignment is an instruction that can set a variable with a provided value.

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

a named piece of data stored in a computer's memory which can be accessed and changed by a computer program. Add one real device or system example to prove understanding.

3. Correct this common computing misconception.

Mistake: Pupils often take user input for numerical values and then cannot perform arithmetic calculations on the data as the value is automatically stored as a string. Correction: The int() function is used to convert a user's input to an integer so that calculations can then be performed. For example, age = int(input()) would allow a user to input their age in to a program.

More Lessons In This Unit

Browse all guides in the Year 8 Computing guide library.