Global and local variables
x

What scope means

What scope means

Scope diagram showing global variables in the main program, local variables and parameters inside functions, and a return value sent back to the main program A program stores values in variables and runs tasks in subprograms such as Python functions. Scope means the part of the program where a variable name can be used.

Global and local variables Lesson

  1. GCSE
  2. /Computer Science
  3. /Global and local variables