Skip to content
KodeTrail

Python

The friendliest first language.

Beginner23 lessons≈4 h 48 min total
Start this trail

Begins with: What is programming?

Trail map

  1. Camp 1

    First steps

    What programming actually is, and your very first Python program.

    1. What is programming?8 min
    2. Your first program10 min
    3. Printing and messages10 min
    4. Comments and error messages12 min
  2. Camp 2

    Variables & types

    Teach Python to remember things: numbers, text, and truth.

    1. Variables: naming your data12 min
    2. Numbers and math12 min
    3. Strings: working with text14 min
    4. Booleans and comparisons12 min
    5. Converting between types10 min
  3. Camp 3

    Control flow

    Make decisions and repeat work — the heart of every program.

    1. Making decisions with ifOn the trail map
    2. Repeating with whileOn the trail map
    3. for loops and rangesOn the trail map
    4. break, continue, and loop patternsOn the trail map
  4. Camp 4

    Collections

    Handle many values at once with lists, dictionaries, and friends.

    1. ListsOn the trail map
    2. Growing and slicing listsOn the trail map
    3. DictionariesOn the trail map
    4. Tuples and setsOn the trail map
    5. Looping over collectionsOn the trail map
  5. Camp 5

    Functions

    Package logic into reusable, nameable blocks — and build a game.

    1. Defining functionsOn the trail map
    2. Parameters and return valuesOn the trail map
    3. Scope: where names liveOn the trail map
    4. Imports and the standard libraryOn the trail map
    5. Project: number guessing gameOn the trail map