Year 8 - Computing
Working with numerical inputs
Introduction to Python programming
Study Hub
This pupil-friendly study guide includes a unit summary, clear notes, common mistakes, and quick questions with answers.
Year 8 - Computing
Introduction to Python programming
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.
You will learn to use arithmetic expressions to calculate values and store these values in variables in a program.
Variables are used to store and reference values. An assignment is an instruction that can set a variable with a provided value.
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.
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.
Browse all guides in the Year 8 Computing guide library.