Find a course

Python for Beginners glossary

31 terms you will meet in the free Python for Beginners course, each explained in one or two sentences.

A

Argument
The actual value passed to a function when it is called.

B

Boolean (bool)
One of the two values True or False.
Bug
A mistake in code that makes a program fail or behave differently from what was intended.

C

Condition
An expression that evaluates to True or False and decides which code runs.

D

Data type
The kind of value, such as int, float, str or bool, which decides what operations are allowed.
Dictionary (dict)
A collection of key-value pairs, such as {"apple": 3}, for fast lookup by key.

E

Exception
An error raised while a program runs, such as ValueError or ZeroDivisionError.

F

f-string
A string prefixed with f that inserts values inside curly braces, such as f"Hi {name}".
Float
A number with a decimal point, such as 3.14, stored approximately in binary.
Function
A named, reusable block of code defined with def that can take inputs and return a result.

I

Indentation
The spaces at the start of a line that show which lines belong to a block; Python requires it.
Index
The position of an item in a sequence, starting at 0 for the first item.
Integer (int)
A whole number with no decimal point, such as 42 or -7.
Interpreter
The program that reads Python code and runs it line by line.
Iteration
One pass through the body of a loop.

L

List
An ordered, changeable collection written in square brackets, such as [3, 1, 2].
Loop
Code that repeats, either while a condition is true (while) or once per item (for).

M

Module
A file of Python code you can import to reuse its functions, such as math or random.
Mutable
Able to be changed in place after it is created, like a list or dictionary.

P

Parameter
A name in a function definition that receives a value when the function is called.

R

range()
A built-in that produces a sequence of integers from start up to, but not including, stop.
REPL
The interactive Python prompt (>>>) that reads a line, evaluates it, prints the result and loops.
Return value
The result a function sends back to the code that called it, using return.

S

Scope
The region of a program where a variable name is visible, such as inside one function.
Script
A text file of Python code, usually ending in .py, that runs from top to bottom.
Set
An unordered collection of unique items.
Slice
A part of a sequence selected with [start:stop], where stop is not included.
String (str)
A sequence of characters in quotes, such as "hello".

T

Traceback
The error report Python prints, showing where an exception happened and its type.
Tuple
An ordered collection that cannot be changed after creation, written in parentheses.

V

Variable
A name that refers to a value stored in memory, created with an assignment such as count = 0.

Put these terms to work

The Python for Beginners course uses every one of these terms in short lessons with instant-feedback questions. It takes about 135 minutes and ends with a free certificate of completion.

Start the course Course overview