Year 8 - Computing
Writing a text-based program
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 create a text-based program from an algorithm that includes input and output.
An algorithm is a sequence of steps that can be followed to do a task. A program is a set of commands that can be run by a computer in order for it to do a task.
a set of step-by-step instructions to solve a problem. Add one real device or system example to prove understanding.
Mistake: Pupils will modify their code to provide input directly in to the input() function, for example, user = input("Aisha"), rather than typing when asked as the program runs. Correction: The computer follows the instructions of a program. Input that a user has to type in should only be entered when the program runs. This allows different users to provide different inputs without changing the program in any way.
Browse all guides in the Year 8 Computing guide library.