Index Ai Academy
Free courses · 22 lessons · about 11 hours

Free Python for AI course

Learn Python from your first line of code to your first call to a language model, with nothing to install.

Create a free account Try the first lesson

Already have an account? Sign in

What you'll be able to do

  • Write Python with variables, loops, functions and classes, and read its error messages without panicking
  • Work with JSON and CSV data, and do math on whole columns with NumPy
  • Call APIs from Python, and handle the failures you can expect
  • Keep API keys out of your code
  • Send a request to a language model, and check the reply before trusting it
  • Build a small tool that combines rule checks with one call to a model

Who it's for

For anyone who wants to build with AI and hasn't programmed before, or hasn't in a long time. It's also where the other courses here send people who need the Python first.

Before you start

Nothing. It starts from your first line of code.

The 22 lessons

All of them are free with no account.

  1. Your first program FreeRun Python, print output, and read an error message without panicking.
  2. Variables FreeGive values names so your program can remember and reuse them.
  3. Numbers and arithmetic FreeIntegers, decimals, rounding, and the math behind every metric.
  4. Strings and f-strings FreeWork with text: join it, slice it, clean it, and format it.
  5. Decisions with if/else FreeCompare values and choose what happens next.
  6. Lists FreeKeep many values in order, then index, slice and change them.
  7. Loops FreeRepeat work over every item without copy-pasting code.
  8. Dictionaries FreeLook values up by name: the shape of almost all real-world data.
  9. Functions FreePackage steps into reusable, testable pieces with inputs and outputs.
  10. Comprehensions FreeFilter and transform a whole collection in one readable line.
  11. Errors and exceptions FreeRead tracebacks, and handle the failures you expect.
  12. Modules and imports FreeUse Python's standard library instead of reinventing it.
  13. Classes and objects FreeBundle data with the functions that work on it.
  14. JSON FreeThe text format APIs and LLMs use to exchange structured data.
  15. Files and CSV data FreeRead and write files, and turn a spreadsheet export into Python data.
  16. NumPy arrays FreeDo math on whole columns at once, the foundation of every ML library.
  17. The terminal FreeNavigate folders and run programs by typing commands.
  18. How APIs work FreeRequests, responses, methods, status codes and headers.
  19. Calling APIs from Python FreeSend requests, read JSON responses, and handle failures.
  20. API keys and secrets FreeAuthenticate safely and keep keys out of your code.
  21. Your first LLM call FreeSend messages to a model and read its reply, tokens and stop reason.
  22. Capstone: ad-copy reviewer FreeCombine files, functions, JSON and an LLM call into one small tool.

When you finish

Finish every lesson, or show you know it in the placement test, and you earn a certificate of completion, "Python for AI course", with its own link you can share or add to LinkedIn.

Questions

Is it really free?
Yes. There's nothing to pay, here or anywhere in the academy. A free account saves your progress and issues your certificate.
Do I need to install anything?
No. The Python in these lessons runs in your browser.
How long does it take?
About 11 hours in all, at your own pace. Your progress stays where you left it.
What does the certificate show?
That your account recorded every lesson as finished or known. It's a certificate of completion from Index Ai Academy, not an accredited qualification.

Start the course

A free account saves your progress across devices and issues your certificate when you finish.

Create a free account