TermDefinition
AlgorithmA step-by-step set of instructions to solve a problem
AssignmentGiving a value to a variable using the = operator
BooleanA data type with only two values: True or False
CastingConverting a value from one data type to another (e.g., int(), str(), float())
CommentText in code preceded by # that is ignored by Python; used to explain code
ConcatenationJoining strings together using the + operator
ConstantA variable whose value should not change; written in UPPERCASE by convention
Data typeThe kind of data stored in a variable (e.g., int, float, str, bool)
DebuggingThe process of finding and fixing errors in a program
FloatA data type for decimal numbers (e.g., 3.14, 0.5)
FunctionA named block of code that performs a specific task (e.g., print(), input())
IDEIntegrated Development Environment — software for writing and running code
IdentifierThe name given to a variable, function, or other element in code
InitialiseSetting a variable to a starting value before using it
InputData entered by the user, captured using the input() function
IntegerA data type for whole numbers (e.g., 5, -3, 0)
Integer divisionDivision that returns only the whole number part, using the // operator
IterationRepeating a set of instructions (loops)
Logical errorAn error where the program runs but produces incorrect results
ModulusThe remainder after division, using the % operator
OperatorA symbol that performs an operation (e.g., +, -, *, /)
OutputData displayed to the user, typically using the print() function
ProgramA sequence of instructions written in a programming language
Runtime errorAn error that occurs while the program is running
SelectionChoosing which instructions to execute based on a condition
SequenceInstructions executed one after another, in order
StringA data type for text, enclosed in quotes (e.g., "hello")
Syntax errorAn error caused by breaking the rules of the programming language
Type conversionSee Casting
VariableA named storage location in memory that holds a value