Write Python
Python overview
See the language and tools used in the course.
Visual noteAn API response still needs a check
- 01
Your program
Sends a request with the inputs the API expects.
- 02
API response
Returns a status and, when applicable, a response body.
- 03
Your checks
Handle errors; validate the fields before using them.
A successful HTTP response does not make an AI answer correct. Check both the response structure and the meaning of its output.
Course mapSee how it connects
Python → data → APIs → model calls
Write Python
You are hereValues, conditions, loops and functions turn a task into repeatable code.
- Values
- Control flow
- Functions
Handle data
Arrays calculate, tables organise, and databases store data for later queries.
- NumPy
- pandas
- SQLite
Connect APIs
An API takes a request and returns a response your program must check.
- Requests
- Responses
- Errors
Call AI models
A model call is an API call with uncertain output that needs validation.
- Prompts
- Inference
- Tools