AI Engineering Foundations: sections and modules
Python & Data Toolkit Refresher
Write idiomatic Python: data types, control flow, functions and PEP 8.
- Lessons
- 5 lessons
- By
- Sourav Banerjee
- Prerequisites
- None
Lessons
Start moduleNotebook-only lessons
These course lessons have no page here yet. Work through their notebooks on GitHub.
Python essentials: variables, operators, control flow, functions
- Implementing variables in Python(optional)
- Implementation of operators in Python(optional)
- Implementing conditional statements(optional)
- Looping constructs(optional)
- Implementing functions in Python(optional)
Python best practices
- Python best practices(optional)
Serving data with Flask APIs
- Creating and accessing APIs with Flask(optional)
- Stock market API endpoints(optional)
Practise and Check
- Deliverable
- Data warm-up: load a CSV into pandas and into SQLite, answer five questions both ways, and expose one of them through a small Flask endpoint.
- Assessment
- Answer the five Interview questions without notes, then run the lab.
- Interview probe
- Larkspur's nightly evaluation sends 200 golden questions to the model. A teammate rewrote it with `asyncio.gather` to make it faster, and it takes exactly as long as before. What do you look for?
- Common mistakes
- Normalising rows with
np.linalg.normwithoutkeepdims=True - Building SQL with an f-string instead of a
?placeholder - Calling blocking
llm.invokeinsideasync defand expecting concurrency
- Normalising rows with
Your Progress
Saved in this browser when you leave the box.