All Algorithms implemented in Python

★ 226,145⑂ 51,319👁 5,933⑃ 13,146● 1,782▤ 0
PythonMITCreated 2016-07-16thealgorithms.github.io/Python/
More from this author
+32
Daily
+169
Weekly
226,145
stars
51,319
forks
5,933
watchers
13,146
prs
1,782
issues
0
releases

README

The Algorithms - Python


  
  
    
  
  
    
  
  
  
    
  

  
  
  
    
  
  
    
  
  
    
  


  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.

 🚀 Getting Started

📋 Read through our Contribution Guidelines before you contribute.

 🌐 Community Channels

We are on Discord! Community channels are a great way for you to ask questions and get help. Please join us!

 📜 List of Algorithms

See our directory for easier navigation and a better overview of the project.

Top issues

Discussions

News & coverage (18)

Hacker NewsAlgorithms Implemented in Python▲ 153 · 27 comments · 2018-09-22Hacker NewsAll Algorithms Implemented in Python▲ 5 · 0 comments · 2022-06-14Hacker NewsAll algorithms implemented in Python for education▲ 2 · 0 comments · 2018-09-12Hacker NewsAsk HN: Can anyone recommend a good implementation of algorithms?▲ 1 · 0 comments · 2020-11-24Infosecurity MagazineNew Supply Chain Attack Compromises Tens of Thousands of GitHub Repositories2026-11-08notePython for Manufacturing: Aggregate Inspection Data and Understand How Code Works2026-11-03i-programmer.infoImpact of AI on GitHub Revealed In Octoverse 20262026-11-03note[Python Implementation] Practical Automation Script for Online Execution on GitHub2026-10-27The Hacker NewsCritical Flaw in Python’s Popular Pillow Image Library Allows Code Execution via a Crafted Image2026-10-23The Hacker NewsLiteLLM Suspects GitHub Token Leak in AI Gateway Logs Behind Malicious Package Release2026-10-22
8 moreVentureBeatGitHub confirms 3,800 internal repos stolen through poisoned VS Code extension as supply chain worm hits Microsoft’s Python SDK2026-05-20Analytics Insight10 GitHub Repositories to Master Python in 20252025-08-08KDnuggets10 GitHub Repositories for Python Projects2025-07-14Analytics InsightTop Programming Languages on GitHub2025-04-02HackerAutomate Python Package Publishing with GitHub Actions2024-09-26Adafruit5 useful Python automation scripts for beginners2026-11-09The Hacker NewsLeaked LiteLLM Master Key Let Attackers Steal GitHub Tokens and Hijack Release Pipeline2026-10-24Step SecurityForceMemo: Hundreds of GitHub Python Repos Compromised via Account Takeover and Force-Push2026-03-14

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON