AiTeky Original Interactive Learning & Practice Intermediate
Python intermediate: write code a team can trust
Comprehensions, generators, well-made functions, error handling, files and JSON, classes, tests, and logging and settings for jobs that run unattended, using a messy payments feed as the running example.
You can already run Python and use pandas. This course covers the habits that separate a notebook that works today from code a team can use, test and trust: short ways to write loops, functions that are easy to reuse, errors that are handled instead of crashing, files and JSON, a small class when data and behaviour belong together, and tests that catch mistakes before your manager does.
Everything runs in the browser, with no set-up. You need the Python basics course first.
- Learn lessons build one idea at a time, with exercises you can repeat.
- Industry ready lessons use a real-looking payments feed (messy, nested JSON, like those from payment gateways) and end with the interview questions that go with them.
- βΆ Run code in your browser. Nothing to install
- β Exercises that check themselves
- π Tap a word to see what it means
Locked. Sign up free
Learn
Understand each idea with everyday examples. No coding background needed.
- 01 20 min Free sample π AiTeky Pass Comprehensions and generators: loops in one line Build lists, dictionaries and sets in one readable line, then use generators to handle long streams of data without holding it all in memory.
- 02 25 min π AiTeky Pass Functions done well: defaults, keywords and clear names Write functions with default values, keyword arguments, docstrings and type hints, return more than one value, and sort and filter with small lambda functions.
- 03 25 min π AiTeky Pass Handling errors: try, except and raising your own Catch the errors you expect, let the unexpected ones show, raise clear errors of your own, and clean up with finally.
- 04 25 min π AiTeky Pass Files and JSON: reading and writing real data Write and read text and CSV files safely with `with`, turn Python data into JSON and back, and explore nested JSON the way an API sends it.
- 05 25 min π AiTeky Pass Classes and dataclasses: data and behaviour together Bundle related data and the functions that work on it in a class, use a dataclass for simple records, and know when a plain function is enough.
Industry ready
Real problems from real jobs, and the questions interviewers ask about them.
- 06 40 min π AiTeky Pass On the job: load a messy payments feed without crashing Read a nested JSON payments feed, find its problems, flatten it to a table with a careful function, count what was skipped and why, and report revenue by payment method and city.
- 07 40 min π AiTeky Pass On the job: turn the loader into a tested, reusable module Tidy the payments loader into a dataclass and small functions, write tests with assert that cover the odd cases, log what the job did, and learn what reviewers and interviewers look for in a data script.
- 08 35 min π AiTeky Pass On the job: logging, configuration and environment variables Give the nightly payments job log levels a support engineer can filter, move its settings out of the code into defaults, a config file and environment variables with a clear order of precedence, catch the "false" that Python reads as true, keep the API key out of the logs, and write the run sheet for the team.

