TheAlgorithms/Python
#878 this week
All Algorithms implemented in Python
220.6K stars
50.5K forks
220.6K GitHub watchers
Updated 6/26/2026
Backblaze Generative Media Hackathon
Build the next generation of AI media apps with Genblaze, stored on Backblaze B2. $10,000 in prizes.
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 exploring and understanding different sorting and searching techniques through practical Python examples.
- Use for contributing to open-source algorithm implementations to improve coding skills and collaborate with others.
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