[CodeTrain](https://codetrain.ai/) / [Learn](https://codetrain.ai/learn/)

# Learn to Code in Python

Start from zero and write real Python from your very first line. Hands-on lessons where you write every line yourself and every step has to run.

[Start free, no card](https://codetrain.ai/app/) 10 lessons a month on the free tier.

## Curated classes in this course

### [Foundations](https://codetrain.ai/learn/python-intro/py-foundations/)

1 lesson · free

Variables, functions, and loops: the moves every program is built from.

### [Collections](https://codetrain.ai/learn/python-intro/py-collections/)

1 lesson · free

Build, filter, and reshape groups of data the Pythonic way.

## Also coming to this course

Writing robust code

## How CodeTrain teaches this

No videos and no multiple-choice quiz at the end. Each lesson is a handful of small steps in a real editor. You type the code yourself, it runs, and the tutor reviews what you actually wrote. It will not hand you the answer, and the step doesn't advance until your code passes. What you get at the end is a record of which steps you wrote unaided, not a completion percentage.

## These curated courses are the starting point, not the product

Everything in this catalog is a **curated** course we wrote by hand. They exist so there is something to start on. What CodeTrain actually does is build a lesson on demand: name **any topic** you want to understand and it writes one for you on the spot, or paste **any public repository** and it teaches you that codebase from the code that is really in it. You are not limited to the list below, and most people stop using it within a session or two.

## Other courses

[Object-Oriented Python](https://codetrain.ai/learn/python-oop/)[JavaScript Fundamentals](https://codetrain.ai/learn/js-intro/)[JavaScript: Functions & Data](https://codetrain.ai/learn/js-functions/)[Command the Terminal: Linux & Bash](https://codetrain.ai/learn/bash-intro/)[How LLMs Actually Work](https://codetrain.ai/learn/llm-foundations/)

[Start this course free](https://codetrain.ai/app/) [Browse every curated course](https://codetrain.ai/learn/)

---

Source: https://codetrain.ai/learn/python-intro/

This is the markdown twin of the page above. Every public CodeTrain page serves one on `Accept: text/markdown`. Start at https://codetrain.ai/llms.txt for the full map, or https://codetrain.ai/developers/ for the API.
