Skip to content

Glossary

Programming has its own vocabulary. This page is a quick reference for the terms used in the course — in plain English, so you can look anything up without leaving the lesson.

TermWhat it means
programA set of step-by-step instructions for a computer
programming / codingThe work of writing programs
codeThe text of a program
statement / commandA single instruction given to the computer
run / executeTo start a program
printTo display text on the screen
stringA sequence of characters written inside quotes
integer (int)A whole number: 5, -3, 1024
floatA number with a fractional part: 3.5, 0.1 — in Python you write a dot, not a comma
variableA named “box” that stores a value
assignmentGiving a value to a variable: x = 5
inputData taken from the user
outputThe data a program displays
errorA problem in the program — Python points to where it is
syntax errorAn error raised when the writing rules are broken
commentA note starting with # that the computer ignores
f-stringText that can hold {variable} placeholders
conversion / castingChanging a value’s type: int("12")
conditionAn expression that is checked as true or false
indentationThe spaces at the start of a line — how Python recognizes blocks
comparisonComparing two values: ==, !=, <, >
True / False (boolean)Python’s “yes” and “no” values
logical operatorand, or, not — they combine conditions
loopA block of code that repeats
counterA variable that goes up or down in a loop (i)
accumulatorA variable that gathers a result across a loop
infinite loopA loop that never ends — watch out with while!
listAn ordered collection of items
indexAn item’s position in a list — it starts at 0!
sliceA part of a list: items[1:3]
methodAn operation called with a dot: .append(), .sort()
dictionary (dict)A structure that stores key–value pairs
keyThe name that leads to a value in a dictionary: player["score"]
functionA named, callable block of code
parameterThe name a function uses for the data passed into it
returnA function handing its result back (without printing it)