We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

Build an AI Agent in Python

Build a tiny coding agent that can read files, edit code, run Python, and loop on feedback.

Browse Lessons (read-only)

What will you learn?

Write a toy agentic code editor in Python, similar to Claude Code or Cursor's Agent Mode. Understand how agents work from scratch by using the Google Gemini API to create an LLM-powered code agent. You'll use function calling and feedback loops to build an agent that can find and fix bugs in a real project!

Chapter List

1
LLMs
Learn how LLMs work and send prompts to the Gemini API using the Python client library
2
Functions
Write the functions your AI agent will need to modify files and run Python code
3
Function Calling
Give your AI agent the ability to call functions based on its system prompt and context window
4
Agents
Give your tool a proper feedback loop to make it truly "agentic" and fix a real bug

Join 16,418 students in the Build an AI Agent in Python course

Read reviews of their learning experiences

Really fun course, really well built out and helpful. I spent about 0.05 USD on credits on this course... but I had to pre-load 10 USD first 😅 But great course in any way!

(5/5)
Kevin Petit profile image

Kevin Petit

Belgium

Hard

(4/5)
Fabrice NIYOKWIZERWA profile image

Fabrice NIYOKWIZERWA

Kigali, Rwanda

A very cool look into what all the actual design concepts behind the most popular coding tools of the day. Lots of freedom to structure your code base (or not) which is a nice way to learn!

(5/5)
Reed  profile image

Reed

United States

I would recommend saving this course for much later in the back end course. There is a lot of new code and functions that I personally felt like I wasn't ready for as a newbie.

(3/5)
Patrick Wheeler profile image

Patrick Wheeler

United States

Being a prompt agent

(5/5)
Paul  profile image

Paul

Germany

This course was not easy, but it was certainly useful.

(4/5)
Leonid Karavaev profile image

Leonid Karavaev

Estonia

Simple and Nice.

(5/5)
Panos Kouli profile image

Panos Kouli

Greece

It's a very interesting course. It gave me a better understanding of ai agents. Also, at least for me, it was a much harder course than the previous ones, and I feel it offered quite a bit of more knowledge than I initially expected. Though, do note, I am not very bright...

(4/5)
Andreas Pavlidis profile image

Andreas Pavlidis

Greece

This is good introduction as a course. However, if you're going to do this on the free-tier for Gemini, then you will run into blocks where you have used up your tokens for the day.

(4/5)
Ozzy M profile image

Ozzy M

Canada

Showing 1-9 of 635

Browse Lessons (read-only)

or view more reviews

Mediocrity doesn't cut it anymore

The only way to become a great developer is to write a lot of code

Avoid tutorial hell

by writing a ton of code

Stay motivated with

a game-like curriculum

Build portfolio projects

to prove your skills

Delve deeper

into foundational concepts

Learn flexibly online

without interrupting your life

For 1% the price of college

to minimize your financial risk

Frequently asked Questions

Got questions? We've got answers

Yes! It's free to create an account and start learning. You'll get all the immersive and interactive features for free for a few chapters. After that, if you still haven't paid for a membership, you'll be in read-only (content only) mode.