14 Definitions

ARGUMENTS the data that is passed to a function

ASSIGNMENT giving a value to a variable

BLOCK indented sections of code

BODY a block of indented code

BOOLEAN a type of variable that holds True or False

CALLING make a function or method start running

CASTING converting one data type into another

CLASS a blueprint for creating an object

CODE instructions for the computer to carry out

COMMAND a single line instruction for the computer to process

CONSTANT a container for data that is fixed and doesn’t change

CPU central processing unit, the microchip inside your computer that processes commands

ELEMENT a single piece of data inside a list

EXECUTE make the computer carry out or process an instruction

EXPRESSION a unit of code that resolves to a value

FIELD the name given to the data contained within an object

FLOAT a type of variable that holds fractional numbers

FRAME each iteration of the main loop, in this game 40 frames per second

FUNCTION a block of code providing a specific functionality

INDEX a number indicating a specific element in a list

INTEGER a type of variable that holds whole numbers

ITERATION name given to each run through a block of code in a loop

KEYWORDS words reserved by Python that can’t be used as variable names eg for while

LIBRARY collections of code that add functionality to the language

LIST a container to hold sequences of data

LOOPS using for and while to repeat blocks of code

MACHINE CODE the native commands given to the CPU for it to process

METHOD the name given to the functions inside an object

MODULE subsection of a library adding functionality to the language

NESTING having one section of code within another section of code

OBJECT an instance of a class, it encapsulates commands and data

OPERATORS perform operations on data and variables

PARAMETERS the data that is received inside the function

PRINT display text on the screen

PROCEDURE a block of code providing a specific functionality

PROCESS make the computer carry out or execute an instruction

PROGRAM instructions for the computer to carry out

RUN make the computer carry out or process an instruction

SCOPE the context in which a variable exists and is active

SEQUENCE a collection of data

STATEMENT a single line instruction for the computer to process

STRING a type of variable that holds a sequence of characters

TYPE a variable’s data type, for example a string or boolean

TYPO a typing mistake

VARIABLE a container for data

<– back to contents