TheAlgorithms/Python
#292 this week
All Algorithms implemented in Python
224.8K stars
51.1K forks
224.8K GitHub watchers
Updated 9/19/2026
Build with Backblaze B2
SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.
Loading star history...
Use Cases & Benefits
- Provides a comprehensive collection of algorithm implementations in Python for educational purposes.
- Offers a community-driven, well-organized resource to learn and practice algorithms with readable Python code.
- Use for studying fundamental algorithms to prepare for coding interviews and algorithm competitions.
- Use for educators seeking clear Python examples to teach sorting, searching, and graph algorithms.
- Use for developers wanting to explore algorithm concepts through hands-on Python implementations and community support.
About Python
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 and Gitter! 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.
Discover Repositories
Search across tracked repositories by name or description