# trekhleb/learn\-python

> 📚 Playground and cheatsheet for learning Python\. Collection of Python scripts that are split by topics and contain code examples with explanations\.

Canonical: https://starboard.codevetter.com/explore/trekhleb/learn-python

[Back to Discover](https://starboard.codevetter.com/discover)

![trekhleb](https://avatars.githubusercontent.com/u/3000285?v=4&s=40)

trekhleb

# learn\-python

[View on GitHub
](https://github.com/trekhleb/learn-python)

📚 Playground and cheatsheet for learning Python\. Collection of Python scripts that are split by topics and contain code examples with explanations\.

learning
learning\-by\-doing
learning\-python
programming\-language
python
python3


19k stars

Python

Updated 1d ago

Created Aug 29, 2018

## Star history

\+582 stars
3\.2% growth


## Detected tools

[pytest](https://starboard.codevetter.com/tools/pytest)


Tool detection is evidence\-based, not a full runtime audit\. Package manifests, lockfiles, and SBOMs are high\-confidence; README, topics, and AI metadata are lower\-confidence signals\. Repository language is metadata, not counted as a tool\. Accuracy varies by ecosystem, especially for C/C\+\+ and custom monorepos\.

- pytest  · 98% confidence · Sources: github\-sbom, requirements\.txt · Detected Jul 17, 2026

## Similar projects

[![huangsam](https://avatars.githubusercontent.com/u/515617?v=4&s=24)

huangsam/ ultimate\-python

Ultimate Python study guide 🐍 🐍 🐍

Python 6\.0k 63%](https://starboard.codevetter.com/explore/huangsam/ultimate-python)[![charlax](https://avatars.githubusercontent.com/u/120501?v=4&s=24)

charlax/ professional\-programming

A collection of learning resources for curious software engineers

Python 52k 66%](https://starboard.codevetter.com/explore/charlax/professional-programming)[![trekhleb](https://avatars.githubusercontent.com/u/3000285?v=4&s=24)

trekhleb/ homemade\-machine\-learning

🤖 Python examples of popular machine learning algorithms with interactive Jupyter demos and math being explained

Jupyter Notebook 25k 68%](https://starboard.codevetter.com/explore/trekhleb/homemade-machine-learning)[![lazyprogrammer](https://avatars.githubusercontent.com/u/1301971?v=4&s=24)

lazyprogrammer/ machine\_learning\_examples

A collection of machine learning examples and tutorials\.

Python 8\.9k 64%](https://starboard.codevetter.com/explore/lazyprogrammer/machine_learning_examples)[![python](https://avatars.githubusercontent.com/u/1525981?v=4&s=24)

python/ typeshed

Collection of library stubs for Python, with static types

Python 5\.2k 63%](https://starboard.codevetter.com/explore/python/typeshed)[![mouredev](https://avatars.githubusercontent.com/u/17043402?v=4&s=24)

mouredev/ Hello\-Python

Curso para aprender el lenguaje de programación Python desde cero y para principiantes\. 100 clases, 44 horas en vídeo, código, proyectos y grupo de chat\. Fundamentos, frontend, backend, testing, IA\.\.\.

Python 38k 61%](https://starboard.codevetter.com/explore/mouredev/Hello-Python)[![matplotlib](https://avatars.githubusercontent.com/u/215947?v=4&s=24)

matplotlib/ cheatsheets

Official Matplotlib cheat sheets

Python 7\.8k 65%](https://starboard.codevetter.com/explore/matplotlib/cheatsheets)[![Python\-World](https://avatars.githubusercontent.com/u/68968126?v=4&s=24)

Python\-World/ python\-mini\-projects

A collection of simple python mini projects to enhance your python skills

Python 19k 64%](https://starboard.codevetter.com/explore/Python-World/python-mini-projects)
