TheAlgorithms/Python
#351 this week
All Algorithms implemented in Python
224.3K stars
51.0K forks
224.3K GitHub watchers
Updated 9/4/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 clear, readable Python code.
- Use for studying fundamental algorithms to prepare for coding interviews and algorithm competitions.
- Use for exploring and understanding different sorting and searching techniques through practical Python examples.
- Use for contributing to open-source algorithm implementations and improving coding skills in a collaborative environment.
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