Readable code for almost anything
Python
A general-purpose language known for clear syntax and a huge standard library. The usual first language for data work, automation and backend services. This path has 17 lessons in reading order, from the basics to the ideas that come up in real code, with a runnable example in every lesson.
- lessons
- 17 lessons
- exercises
- 20 exercises
- interview questions
- 25 interview questions
- challenges
- 6 challenges
What Python is used for
- Data science
- Automation and scripting
- Web backends
- Machine learning
How examples are checked
Every example and every exercise solution was run with CPython 3.11 at build time; runs in your browser on CPython 3.14 (Pyodide). The Run buttons execute the same code on your device.
Learn
The Python learning path
Read in order: each lesson leans only on the ones before it. Every lesson ends with a small program to write and links to matching exercises.
Beginner
BeginnerPractice
Practise Python
20 exercises across 9 topics, each checked by running your program against test cases. Start with these:
- Choose a delivery windowEasy
Classify a parcel into a delivery window with clear Python if, elif and else conditions.
ConditionsNot started
- Dispatch message initialsEasy
Create uppercase initials from a multi-word dispatch message using Python string operations.
StringsNot started
- After-sales shortfallsMedium
Compute post-sale stock shortfalls for products and report only items that fall below their minimum.
DictionariesNot started
- First repeated checkpointMedium
Detect the first checkpoint visited twice in a route while preserving the route's travel order.
SetsNot started
More
Go further
Python interview questions
25 questions with answers that explain the reasoning: concepts, output prediction, debugging, coding and scenarios.
Coding challenges in Python
6 algorithmic problems with starter code and tests.
Python playground
Write and run Python in your browser with example snippets to start from.