// tech tips · reference

Programming Glossary: 65 Coding Terms Explained Simply

Plain-English definitions of the programming words beginners meet most often, from algorithm and argument to variable and virtual environment, with Python examples.

Programming comes with a lot of new vocabulary, and tutorials often use words without explaining them. This glossary gives each term a short, plain-English definition, with a tiny Python example where it helps. Use Ctrl + F (Cmd + F on a Mac) to find a word quickly.

A–C

Algorithm: a step-by-step set of instructions for solving a problem, like a recipe. A program is an algorithm written in a language a computer can run.

Argument: a value you pass into a function when you call it. In greet("Ava"), "Ava" is the argument. Compare parameter.

Assignment: storing a value in a variable with =, as in score = 10.

Attribute: a variable that belongs to an object, accessed with a dot, as in dog.name. See classes and objects.

Boolean (bool): a value that is either True or False.

Breakpoint: a marker that tells a debugger to pause the program on a particular line. See debugging in VS Code.

Bug: a mistake in a program that makes it behave wrongly. Debugging is finding and fixing bugs.

Call: running a function by writing its name followed by brackets, as in print("hi").

Case-sensitive: treating capital and small letters as different. Python is case-sensitive, so Score and score are two different names.

Class: a blueprint for creating objects that share the same attributes and methods.

Command line (terminal): a text window where you type commands to run programs. See command line basics.

Comment: a note in code for humans, ignored by Python. Comments start with #.

Commit: a saved snapshot of a project in Git. See Git basics.

Compiler: a program that translates code into machine code before it runs. Python is usually run by an interpreter instead.

Concatenation: joining strings together, as in "Code" + "Runner".

Condition: an expression that is True or False, used by if and while to decide what to do.

Constant: a value meant never to change. Python has no special constants, so by convention they’re named in capitals, as in MAX_LIVES = 3.

D–I

Data type: the kind of value something is, such as int, float, str, bool, list or dict.

Debugger: a tool that lets you pause a program, step through it line by line and inspect its variables.

Dictionary (dict): a collection of key-value pairs, as in {"Ava": 15}. See dictionaries.

Exception: an error that happens while a program is running, such as ValueError. It can be caught with try/except. See try and except.

Expression: any piece of code that produces a value, such as 2 + 3, name.upper() or x > 5.

f-string: a string starting with f that can include variables in curly braces, as in f"Hi {name}".

Float: a number with a decimal point, such as 3.5.

Function: a named, reusable block of code that can take inputs and return a result, defined with def. See functions.

IDE (integrated development environment): an application for writing, running and debugging code in one place. VS Code with extensions works as one.

Immutable: impossible to change after it’s created. Strings and tuples are immutable; lists aren’t.

Indentation: spaces at the start of a line. In Python, indentation shows which lines belong inside an if, loop or function.

Index: an item’s position in a sequence, starting at 0. In "cat"[0], the index 0 gives "c".

Infinite loop: a loop that never stops because its condition never becomes False. Press Ctrl + C to stop it.

Inheritance: creating a new class based on an existing one, so it reuses the parent’s code.

Input: data a program receives, for example from the keyboard with input().

Integer (int): a whole number, such as 7 or -3.

Interpreter: a program that reads and runs code line by line. When you type python file.py, the Python interpreter runs your file.

Iteration: one pass through a loop. To iterate over a list means to go through its items one at a time.

K–P

Keyword: a word reserved by Python with a special meaning, such as if, for, def, class and return. You can’t use keywords as variable names.

Library / package: a collection of ready-made code you can use in your programs. Packages are installed with pip. See modules and pip.

List: an ordered, changeable collection, as in [1, 2, 3]. See lists.

Logic error: a bug that doesn’t crash the program but makes it give the wrong result. These are the hardest bugs to spot.

Loop: code that repeats. Python has for loops and while loops.

Method: a function that belongs to an object, called with a dot, as in "hi".upper() or my_list.append(4).

Module: a Python file containing code you can import, such as random or math.

Mutable: able to be changed after it’s created. Lists, dictionaries and sets are mutable.

None: Python’s special value meaning “nothing” or “no value”. A function without a return gives back None.

Object: one thing created from a class, with its own attributes. In Python, every value is an object.

Operator: a symbol that performs an operation, such as +, *, == or and. See operators and maths.

Output: what a program produces, such as text shown with print() or a file it saves.

Parameter: a variable named in a function’s definition that receives an argument. In def greet(name):, name is the parameter.

PATH: a list of folders your computer searches when you type a command. If Python isn’t on your PATH, typing python gives “not recognized”.

pip: Python’s tool for installing packages, run as python -m pip install name.

Program / script: a set of instructions a computer can run. Script usually means a shorter program in a single file.

R–Z

Return value: the value a function gives back with return, so the code that called it can use it.

Scope: where in a program a variable can be used. Variables created inside a function are local to it.

Set: an unordered collection of unique values, as in {1, 2, 3}. See tuples and sets.

Slicing: taking part of a sequence with [start:stop], as in "Python"[0:2], which gives "Py".

Statement: one complete instruction, such as x = 5 or print(x).

String (str): text, written in quotes, such as "hello". See strings.

Syntax: the grammar rules of a programming language. A syntax error means Python can’t understand how a line is written.

Traceback: the report Python prints when an error stops a program, showing where the error happened. Read it from the bottom up. See reading error messages.

Tuple: an ordered collection that can’t be changed, as in (3, 5).

Type conversion (casting): changing a value from one type to another, such as int("5") or str(10).

Variable: a name that refers to a value, as in score = 0. See variables and data types.

Version control: a system that records changes to files over time, so you can go back to earlier versions. Git is the most popular.

Virtual environment: a private folder of installed packages for one project, created with python -m venv .venv.

Whitespace: spaces, tabs and new lines. Python uses leading whitespace (indentation) to group code.

Can’t find a word? Tell us on the Contact page and we’ll add it. To see these ideas in code, keep the Python Cheat Sheet open while you practise.