Python
Variables, loops, functions, data, files and classes.
Foundations is free: 8 lessons.
42 lessons, 8 free
0 of 42 lessons passed
PYTHON COMPLETE
You can now:
- Write programs on your own, from a blank file
- Use lists, dicts, tuples and sets, and pick the right one
- Write functions and classes, and test them with assert
- Read a traceback and fix common errors
- Work with files, CSV and JSON
- Build a small application
Practise
The course, unit by unit
Part 1: Foundations
1 unit, 7 lessons
Part 1: Foundations
1 unit, 7 lessons
Part 2: Core
1 unit, 12 lessons
Part 2: Core
1 unit, 12 lessons
-
Unit 2: Core
4 hr 50 min1 free lessonBrainlag Code
- Python while loops Free
- Python for loops and range(), Brainlag Code
- Booleans in Python: and, or, not, Brainlag Code
- Python checkpoint: loops and logicCheckpoint, Brainlag Code
- Python lists, Brainlag Code
- Python list methods: split, join and more, Brainlag Code
- Python functions: return and print, Brainlag Code
- Python function parameters and scope, Brainlag Code
- Python checkpoint: lists and functionsCheckpoint, Brainlag Code
- Python dictionaries, Brainlag Code
- Python tuples and sets, Brainlag Code
- Python checkpoint: collectionsCheckpoint, Brainlag Code
Part 3: Deeper
3 units, 23 lessons
Part 3: Deeper
3 units, 23 lessons
-
Unit 3: Errors and files
2 hr 35 minBrainlag Code
-
Unit 4: Advanced
5 hr 25 minBrainlag Code
- Python enumerate and zip, Brainlag Code
- Python list comprehensions, Brainlag Code
- Sorting in Python with key, Brainlag Code
- Python classes, Brainlag Code
- Python objects that hold other objects, Brainlag Code
- Python inheritance, Brainlag Code
- Python type hints, Brainlag Code
- Testing Python code, Brainlag Code
- Python with an AI assistant, Brainlag Code
- Python bug huntBug hunt, Brainlag Code
- Python final challengeFinal challenge, Brainlag Code
-
Unit 5: Problem solving
3 hr 15 minBrainlag Code
Projects
Lessons teach one idea at a time. Projects glue them together: a brief, a few milestones and a starter file.
- Character stat card30 min, 4 milestones
- Gig door checker40 min, 4 milestones
- Brainlag Code: Number guesser45 min, 3 milestones
6 more projects
- Brainlag Code: Grade report40 min, 4 milestones
- Brainlag Code: Text adventure engine3 hours, 6 milestones
- Brainlag Code: Quiz engine2 hours, 4 milestones
- Brainlag Code: Streaming data analyser3 hours, 5 milestones
- Brainlag Code: Command-line expense tracker3 hours, 5 milestones
- Brainlag Code: Five-a-side league manager5 hours, 5 milestones
Bigger builds included in Brainlag Code
Questions
What is the course about?
The friendly one. Variables, loops, functions, data, files and classes. The language that reads almost like English and runs half the internet's scripts. It is for: total beginner.
What is free?
8 of the 42 lessons.
Do I need to install anything?
No. Your code runs in the browser, in the editor beside each lesson.
Do I need an account?
No. Progress saves in this browser; sign in to keep it on every device.
What can I do by the end?
- Write programs on your own, from a blank file
- Use lists, dicts, tuples and sets, and pick the right one
- Write functions and classes, and test them with assert
- Read a traceback and fix common errors
- Work with files, CSV and JSON
- Build a small application
How long does it take?
About 18 hr 30 min of lessons in 5 units. Lessons take 20 to 60 minutes each.