Python for AI glossary
Key terms from this course, in plain English.
- API
- Application programming interface: a way for programs to request services from another system, such as an AI model.
- API key
- A secret credential that identifies and authorises your API requests.
- Boolean
- A True or False value.
- Cache
- A store of answers already worked out, so the same request doesn't have to be made twice.
- Code cell
- A block of code you can run on its own and see the result straight away, as in a notebook or on these pages.
- Coding agent
- An AI tool that writes, runs and fixes code across a project from plain-English instructions.
- Colab
- Google's free, browser-based notebook environment for Python.
- CSV
- Comma-separated values: a simple text format for tables.
- DataFrame
- pandas' table structure of rows and named columns.
- Dictionary
- A Python collection mapping keys to values.
- Environment variable
- A setting stored outside your code, commonly used for secrets such as API keys.
- f-string
- A string prefixed with f that inserts values inside {curly braces}.
- Function
- A named, reusable block of code that can take inputs and return an output.
- groupby
- A pandas operation that splits data into groups to summarise each.
- Join (merge)
- Combining two tables by matching rows on a shared column.
- JSON
- JavaScript Object Notation: a text format for structured data used by most web APIs.
- JSON Lines
- A file format with one JSON object per line.
- Lambda
- A small function written in place, often used to say what to sort or compare by.
- List
- An ordered Python collection of items.
- List comprehension
- A concise way to build a list from another, e.g. [x*2 for x in nums].
- MCP
- Model Context Protocol: an open standard for connecting AI apps to tools and data sources.
- Notebook
- An interactive document mixing code cells, outputs and notes.
- pandas
- The standard Python library for tabular data analysis.
- pydantic
- A Python library for describing the shape of data as a class and checking that data matches it.
- Rate limit
- A cap on how many requests or tokens you can use per minute.
- Regular expression
- A pattern language for finding and manipulating text.
- SDK
- Software development kit: a library that makes an API easy to use from a language such as Python.
- String
- A sequence of characters โ text.
- Structured output
- An API feature that guarantees a model's reply matches a schema you define, such as specific JSON fields.
- Tool use
- Letting a model ask your code to run a function, then using the result in its answer.
- try/except
- Python's way of catching and handling errors.
- uv
- A fast, newer tool for installing Python packages and managing project environments.
- Virtual environment
- An isolated set of Python packages for one project.