Block 06 · YOUR FIRST PROGRAMMING LANGUAGE

Python

Learn to program from zero with small, runnable, game-flavoured examples, from your first variable to a battle built with classes.

8 modules40 activitiesAbout 20 hoursBeginnerLesson → Quiz → Exercise → Project

Progress one module at a time

Course map

  1. Module 015 activities

    Variables & Values

    Store numbers and text in named variables, do arithmetic, and print clear messages with f-strings.

    LessonQuizExerciseReviewProject
  2. Module 025 activities

    Making Decisions

    Let your program choose what to do with if, elif and else, using comparisons and the logic words and, or and not.

    LessonQuizExerciseReviewProject
  3. Module 035 activities

    Loops

    Repeat work with for and while, walk through lists, count with range, and stop early with break.

    LessonQuizExerciseReviewProject
  4. Module 045 activities

    Functions

    Package code into named, reusable pieces with def, parameters, return values and defaults.

    LessonQuizExerciseReviewProject
  5. Module 055 activities

    Lists & Dictionaries

    Hold many values at once: ordered lists you read by position, and dictionaries you read by name.

    LessonQuizExerciseReviewProject
  6. Module 065 activities

    Working With Text

    Clean up, search, split and join text, which is most of what real programs do with real input.

    LessonQuizExerciseReviewProject
  7. Module 075 activities

    Errors & Files

    Read what an error is telling you, handle failures with try and except, and save data to files.

    LessonQuizExerciseReviewProject
  8. Module 085 activities

    Classes & Objects

    Bundle data and the code that uses it into your own types, then build a small game out of them.

    LessonQuizExerciseReviewProject