Year 10 - Computing
Variables and constants in programs
Programming: sequence
Study Hub
This pupil-friendly study guide includes a unit summary, clear notes, common mistakes, and quick questions with answers.
Year 10 - Computing
Programming: sequence
In this unit pupils will discover computers process instructions. They will recognise the function and tools IDEs provide for developing code and start to develop Python programa which follow a sequence. Pupils will create programs which deal with input and output and make variables to store values.
You will learn to apply appropriate naming conventions and explain the differences between variables and constants.
Naming conventions improve code readability and maintainability. A variable is a named piece of data stored in a computer's memory.
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: You can define a constant in any programming language. Correction: Python does not have constants. But if you want a value to be treated as a constant, it's a common naming convention for the identifier to be written in capital letters.
Browse all guides in the Year 10 Computing guide library.