Python for GCSE

6.4: understand the need for, and how to use, global and local variables when implementing subprograms

Keywords:
Sub programs
Test your self on these keywords and definitions using the games below or Play random game
KeywordDefinition
global variablea variable which can be accessed from anywhere in a program
local variablea variable which can only be read / written within a particular part of a program
scopethe part of a program where a variable can be accessed.
variablememory storage location with a name that can store an individual value. The value can change when the program runs.
Keyword games:
Resources: