Skip to content
Browse the library
LEARN / A CURATED COLLECTION

Python practice repositories: examples, algorithms and patterns

Choose Python practice by task: sequential exercises, runnable examples, algorithms, design patterns, surprising behavior, or data-science notebooks.

Match the practice to the skill

Choose 30 Days of Python for a topic sequence or Learn Python for a playground of examples. Use The Algorithms when you want to inspect an algorithm implementation. Once you have a specific design or language-behavior question, try Python Patterns or wtfpython.

The Python Data Science Handbook takes a separate route through scientific-Python notebooks. Its README assumes Python familiarity and documents older environments, so check the edition and dependencies before copying installation commands.

Make the exercise your own

Pick one small problem. Write down the expected result, run or trace the example, then change an input and explain the difference. For algorithm study, attempt your own implementation before comparing it with the source. For design patterns, explain the tradeoff before adopting the structure.

How this collection is selected

The collection groups catalog entries that teach Python through code or examples. Frameworks and package managers are excluded so the focus stays on practice and understanding.

Selection notes updated . Popularity metrics, when available, show their own snapshot date.

Compare the starting points

Choose a resource by task, prerequisites, and limitations
ResourceUse it forPrerequisitesBefore you start
The Algorithms - PythonStudying and comparing Python algorithm implementations.Be able to read the chosen implementation and its problem.The source describes educational implementations; they are not automatically a production-library replacement.Source 1
30 Days Of PythonA sequence of Python topics and exercises.Start with the installation and introductory sections.The daily organization is a topic structure, not a guaranteed completion schedule.Source 1
Learn PythonChanging runnable examples and using a language cheatsheet.Follow the repository’s setup for the chosen example.A playground does not supply the same learning sequence as a full course.Source 1
What the fck PythonExplaining surprising Python behavior.Read short Python snippets and check your interpreter version.Version-specific behavior and surprising examples are not a recommended coding style.Source 1
Python PatternsComparing design patterns and Python idioms.Understand the classes or functions used in the selected example.Use a pattern for its tradeoff; verify reuse terms separately from the catalog label.Source 1
Python Data Science HandbookLearning scientific-Python tools through notebooks.The README assumes Python familiarity.The documented environment is old; check compatible dependencies before executing notebooks.Source 1

Questions before choosing

Which repository should I try first?

If you want a topic sequence, inspect 30 Days of Python. If you already have a specific question, choose examples, algorithms, patterns, or notebooks that match it. Try one exercise before deciding on a longer path.

Can I copy a repository’s examples into my project?

Check the original repository and relevant files for their current license and conditions. Being publicly readable on GitHub does not by itself establish permission for every reuse.

Original sources

6 resources · 34 topics · 11 collections
Latest star snapshot

Repository directory

Browse the wider topic: Python