TheAlgorithms

    TheAlgorithms/Python

    All Algorithms implemented in Python

    225.8K stars
    51.3K forks
    225.8K GitHub watchers
    Updated Nov 3, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Where it stands

    Rank, growth pace and release cadence relative to everything GStars tracks.

    The project lists 451 contributors on GitHub.

    Peaked at #3 in the weekly ranking the week of Sep 21, its best in the past year.

    Use Cases & Benefits

    • Provides implementations of a wide range of algorithms in Python for educational purposes.
    • Offers a comprehensive, community-driven collection that facilitates learning and practicing algorithms in a single repository.
    • Use for studying and understanding fundamental algorithms and data structures in Python for academic or self-learning.
    • Use for preparing for coding interviews by practicing common algorithmic problems and solutions.
    • Use for contributing to open-source algorithm implementations and improving Python coding skills through community collaboration.

    Should you depend on it?

    License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.

    License

    MIT

    Permissive: commercial use, modification and redistribution are allowed with attribution.

    Community files

    • README: present
    • Contributing guide: present
    • Code of conduct: present

    Watch-outs

    • No GitHub releases; pin a commit or tag instead of a release.

    General guidance from repository metadata, not legal advice. How we score

    From the README

    All algorithms implemented in Python - for education

    Implementations are for learning purposes only. They may be less efficient than the implementations in the Python standard library. Use them at your discretion.

    Read through our Contribution Guidelines before you contribute.

    Excerpt from the TheAlgorithms/Python README on GitHub (MIT license). © its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Forks

    51.3K+344

    Open issues

    82-936

    Compared with peers in Education

    Fastest-growing repositories GStars tracks in this cohort for the week of Nov 8, by 7-day star growth

    TheAlgorithms/Python compared with Education repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    rohitg00/ai-engineering-from-scratch78.3K+1.6K751 day ago
    mnfst/awesome-free-llm-apis12.8K+75475—
    luongnv89/claude-howto46.9K+44075161 days ago
    github/awesome-copilot41.0K+25175—
    TheAlgorithms/Python225.8K—45—
    ripienaar/free-for-dev141.8K—45—
    Category median46.9K+59775—

    Also by TheAlgorithms

    Other repositories from this maintainer that GStars tracks

    Discover Repositories

    Search across tracked repositories by name or description