A collection of practice problems, exercises, and other resources to level up your Python skills!
Problem sets are arranged by topic and are linked below. Each problem set lists the problems and provides 1) a Colaboratory notebook where you can develop code in your browser, and 2) a solution notebook so you can see and run some code that solves the problem. All solutions are written in Python 3. I am not the author of most of these problems, and have provided credit when I'm not!
The basics
- Printing
- Strings
- Math operations
- Collecting user input
- Lists
- Tuples
- Dictionaries
- Sets
- Functions
- Conditional logic
- Exception handling and errors
- File I/O
- Object-oriented programming (OOP)
Advanced topics
- Decorators
- Generators
- Collections
- Logging
- JSON files
- Numpy
- Pandas
- Scikit Learn
- TensorFlow
Projects
- Create your own calculator
- Mad libs game
- w3resource has a collection of thousands of practice problems, organized by topic.
- GeeksforGeeks also has thousands of exercises, organized by topic.
- PyNative also has hundreds of Python exercises on their site.
- 100+ Python exercises for beginners.
- Practice Python has dozens of exercises for you to complete, each with a solution and a mini-lesson for needed material to complete the problem.
- Python mini projects by @nleah.
We are eager to have others contribute! Please see our contributor guidelines to get started!