Validation result object
Implement a ValidationResult class that tracks validation errors and can report validity.
Lookahead Validation
Write a regex-based function to check if a password meets length and character class requirements.
Derangement count
Implement a function to count derangements of n items using the classic recurrence.
Binary Search Tree Class
Build a BinarySearchTree class and a sequence runner that executes a list of operations.
Keys and Rooms
A classic graph traversal challenge: check if all rooms are reachable from room 0 using keys found in visited rooms.
Max Stack Design
Implement a MaxStack class with push, pop, top, and get_max operations.
Min Heap Class
Build a MinHeap class with push, pop, peek, and size methods that maintain a valid min-heap.
Showing 25–31 of 31 challenges · easy
Guide: free Python coding challenges
Practice Python by solving problems
PythonSkillset challenges are hands-on coding exercises from beginner to advanced. Open a challenge, read the problem, write Python in the split-pane editor, and run tests with Pyodide — no install required.
How to use the arena
- Pick a category — basics, algorithms, strings, and more
- Open a challenge, read the statement, and edit the starter code
- Run tests, fix failures, then try a related quiz or tutorial lesson
Challenges vs tutorials and quizzes
Challenges test what you can build under constraints. For guided teaching, use our Python tutorials. For quick checks, try quizzes or copy snippets from code samples.