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.
Progress one module at a time
Course map
- Module 015 activities
Variables & Values
Store numbers and text in named variables, do arithmetic, and print clear messages with f-strings.
LessonQuizExerciseReviewProject - 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 - Module 035 activities
Loops
Repeat work with for and while, walk through lists, count with range, and stop early with break.
LessonQuizExerciseReviewProject - Module 045 activities
Functions
Package code into named, reusable pieces with def, parameters, return values and defaults.
LessonQuizExerciseReviewProject - Module 055 activities
Lists & Dictionaries
Hold many values at once: ordered lists you read by position, and dictionaries you read by name.
LessonQuizExerciseReviewProject - 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 - Module 075 activities
Errors & Files
Read what an error is telling you, handle failures with try and except, and save data to files.
LessonQuizExerciseReviewProject - 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