Learn / Learn to Code in Python

Foundations

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

Start free, no card 10 lessons a month on the free tier.

Lessons in this class

Python Basics

python · 4 steps · free

Variables, printing, and your first function.

  1. Print a greeting
  2. Store a value
  3. Write a function
  4. Loop a little

Start this lesson

Also coming to this class

Conditionals & branchingWorking with strings

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.

The rest of Learn to Code in Python

Collections
Start this class free Browse every course