Menu
CoddyTech
NewJourney

Learn AI Engineering

A free, interactive course for Python programmers who want to build with language models. Write the code for model calls, tools and agent loops, press Run, and earn a certificate for each section.

44 lessons44 challenges96 quiz questionsAbout 2 hours

Syllabus

2 sections2 projects44 lessons44 challenges96 quiz questions
  1. Start sectionStartExpandCollapseCall a language model from Python: messages and roles, system prompts, stop reasons, effort, streaming, token counts and costs, errors, and structured JSON output.

    First Model Calls

    5 lessons516

    Controlling the Output

    5 lessons516

    Tokens and Structure

    5 lessons516

    Project: Ticket Triage

    4 lessons4

    Final Challenges

    3 lessons3
  2. Start sectionStartExpandCollapseGive a model tools: define them with JSON schemas, run the calls it asks for, send the results back, and build a safe agent loop with error handling, step limits and human approval.

    Tool Use Basics

    5 lessons516

    The Agent Loop

    5 lessons516

    Designing Agents

    5 lessons516

    Project: Travel Agent

    4 lessons4

    Final Challenges

    3 lessons3
What you get
Everything you'll use to learn to code

Learn by Doing

Write real code, query databases, build websites, and master AI prompts. Our interactive lessons cover every skill modern developers need.

playground.js
Code Editor
1const greeting = "Hello, Coddy!"
2function sayHi(name) {
3    return greeting + " " + name
4}
5
bottombar Collapse icon
Test #1test Case Success icon
Test #2test Case Success icon
Test #3test Case Failure icon
Input
"Alex"
Output
"Hello, Coddy! Alex"

Build Your Streak

Stay consistent and watch your progress grow! Track your daily coding habit, protect your streak with freeze days, and earn rewards for showing up every day.

12 days streak

Return tomorrow to keep your streak!

fire Filled icon
left icon

January 2026

right icon

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

21

22

23

24

25

26

27

28

29

30

product Double Or Nothing icon

Double or Nothing

Day 5 of 7

fire Freeze icon

Streak Freeze

2 left

You're Not Alone

Compete on global leaderboards, invite friends to earn rewards, and celebrate each other's wins. Coding is better with friends!

Challenger League
Challenger LeagueTop 7 advance
leaderboard First icon1
avatar 1 icon
fire Filled icon
Alex7+ Days
2840
leaderboard Second icon2
avatar 2 icon
fire Filled icon
Jordan7+ Days
2650
leaderboard Third icon3
avatar 3 icon
fire Filled icon
Sam7+ Days
2420
4
avatar 4 icon
Casey
2180
5
avatar placeholder icon
fire Filled icon
Morgan7+ Days
1950
leaderboard Arrow Up iconPromotion zoneleaderboard Arrow Up icon

Every way to learn

Read, listen, test yourself, ask the AI, or look up anything you've already covered. Every lesson meets you where you are.

Intro to Variables
Audio

A variable is a named container that stores a value you can reference later in your program.

In Python, you create one by writing the name, an equals sign, then the value you want to store.

The value can change over time. Reassigning the name simply points it to a new value.

1xSarah

Earn a Certificate

Earn certificates for every course you complete. Add them to your LinkedIn profile and resume to showcase your coding expertise to employers.

CoddyCertificate of Completion
This certifies thatJohn Doehas successfully completed
python iconPython Fundamentals
Verified
DateJan 2026
LinkedInAdd to LinkedIn

Why learn AI engineering with Coddy

  • You write real Python against the interface of Anthropic's Python SDK: client.messages.create, roles, system prompts and tools. Each lesson runs your code against Coddy's stand-in for the SDK, which answers from fixed rules instead of calling a model, so every answer can be checked exactly and you need no API key.
  • Calling Models From Code covers messages and roles, system prompts, reading the response, max_tokens and stop reasons, varied answers, effort and thinking, streaming, counting tokens and cost, API errors, and structured output with a JSON schema and enums.
  • Tools and Agents defines tools with JSON schemas, reads the tool calls a model asks for, returns their results, chooses between tools, runs parallel calls, and builds an agent loop with error handling, step limits, input validation and human approval.
  • Each section ends with a project, a support ticket triage and then a travel booking agent that asks before it books, plus practice challenges such as a chat with memory, a token budget guard, a lead extractor, a calculator agent and an inventory agent.

Questions about learning AI engineering

What is AI engineering?

AI engineering is building software on top of language models: calling a model from code, shaping its answers with prompts and schemas, controlling cost and errors, and giving it tools so it can act as an agent. It is about using models in apps, not training them.

How do you build an AI agent?

An AI agent is a loop around a model. You send the model the conversation and the tools it may use, described with JSON schemas. When it asks for a tool, your code runs the tool and sends back the result, and the loop repeats until the model answers. Good agents also handle tool errors, stop after a set number of steps and ask a human before risky actions. The Tools and Agents section builds this loop step by step.

Does the course call a real AI model?

No. Your code uses the same calls as Anthropic's Python SDK, but in the lessons it talks to coddy_ai, Coddy's stand-in that answers from fixed rules. The same program always prints the same output, so the checks are exact and you need no API key or paid account. In your own project, import anthropic and the same code calls the real API.

Do I need to know Python first?

Yes: variables, lists, dictionaries, functions, loops and input(). The course writes Python from the first lesson. New to code? Start with the Python course.

How is this different from prompt engineering or machine learning?

Prompt engineering is writing good instructions in a chat. Machine learning is training models on data. AI engineering is writing the code that uses a model inside an app: requests, responses, tokens, tools and agent loops. Coddy teaches each: see the AI Prompts course and the Machine Learning course.

How are the exercises checked?

Each check runs your program with the lesson's input and compares what it prints with the expected output. Because the stand-in answers the same way every time, a lesson passes when your code makes the right calls and handles the replies as the task asks.

Does the course teach RAG, fine-tuning or deploying agents?

Not yet. The two sections cover calling models from code, and tools and agents. Retrieval with embeddings (RAG), fine-tuning, evaluations and deploying an agent to production are not covered.

Is the AI Engineering course free?

Yes. The lessons, the hints and the certificates are free. A free account works through a few lessons a day, and Pro removes the daily limit.

Do I get a certificate for the AI Engineering course?

Yes. Each of the 2 sections gives you a free certificate of completion when you finish it, with its own page you can share or add to LinkedIn.

Coddy programming languages illustration

Learn AI Engineering with Coddy

Get started