Beginner learning path
Learn one coding idea at a time.
CodeIt lessons introduce one concept, let students try it immediately, and connect the idea to projects they can build and change.
The full beginner Python path
CodeIt has 31 sequenced beginner Python lessons. Each one introduces a single idea, gives a runnable example, and ends with a challenge that changes the code.
Lesson 1: Hello Python!
Covers print statements and your first working Python program.
Lesson 2: Storing Info with Variables
Covers storing names, numbers, scores, and other information.
Lesson 3: Strings
Covers working with text and useful string methods.
Lesson 4: Making Decisions with If Statements
Covers making programs choose what happens next.
Lesson 5: Simple Repetition
Covers repeating actions with range.
Lesson 6: For Loops
Covers looping through text and collections.
Lesson 7: Basic Lists
Covers keeping several related values together.
Lesson 8: Loops with Lists
Covers processing every item in a list.
Lesson 9: Basic Functions
Covers organizing reusable actions and returning results.
Lesson 10: Combining Concepts
Covers combining functions, loops, decisions, and lists.
Lesson 11: Numbers & Arithmetic
Covers using integers, decimals, and arithmetic operators.
Lesson 12: Booleans & Comparisons
Covers comparing values and working with True and False.
Lesson 13: Logical Operators
Covers combining conditions with and, or, and not.
Lesson 14: Type Casting
Covers converting safely between text and number values.
Lesson 15: String Formatting
Covers building readable messages with modern f-strings.
Lesson 16: String Methods
Covers cleaning, searching, and reshaping text.
Lesson 17: While Loops. Keep Going Until
Covers repeating until a condition changes, and avoiding endless loops.
Lesson 18: Break and Continue. Stop or Skip
Covers leaving a loop early or skipping a single pass.
Lesson 19: Import and Random. Borrowing Superpowers
Covers borrowing ready-made modules and adding dice rolls.
Lesson 20: Dictionaries. Labels, Not Numbers
Covers storing and looking data up by name instead of by position.
Lesson 21: Looping Through a Dictionary
Covers visiting every key and value in turn.
Lesson 22: Tuples and Sets
Covers values that cannot change, and collections without duplicates.
Lesson 23: Slicing. Taking a Piece
Covers taking part of a list or string, including counting from the end.
Lesson 24: List Comprehensions. A List in One Line
Covers building and filtering a whole list in one line.
Lesson 25: Functions That Give Things Back
Covers default arguments, several returns, and what None means.
Lesson 26: Scope. Where a Variable Lives
Covers where a variable lives and why it disappears.
Lesson 27: Try and Except. When Things Go Wrong
Covers recovering from errors instead of crashing.
Lesson 28: Enumerate and Zip
Covers counting while you loop and walking two lists together.
Lesson 29: Classes and Objects. Your Own Kind of Thing
Covers writing your own type with methods and its own data.
Lesson 30: Recursion. A Function That Calls Itself
Covers functions that call themselves, and the base case that stops them.
Lesson 31: Capstone. Build a Real Game
Covers combining loops, dictionaries, classes, and error handling into one game.
What you can do on CodeIt
The path starts with a first print statement and builds toward variables, strings, if statements, loops, lists, and reusable functions.