Ultimate Python study guide
Ultimate Python study guide for newcomers and professionals alike.
print("Ultimate Python study guide")
Motivation
I created a GitHub repo to share what I've learned about core Python
over the past 5+ years of using it as a college graduate, an employee at
large-scale companies and an open-source contributor of repositories like
Celery and
Full Stack Python.
I look forward to seeing more people learn Python and pursue their passions
through it.
Goals
Here are the primary goals of creating this guide:
main
routines are not deleted and
run successfully after each change.
sqlalchemy
, requests
,
pandas
) are not installed. However, reading the source code in these frameworks is
inspiring and highly encouraged if your goal is to become a true
Pythonista.
Table of contents
- About Python
- Overview: What is Python (
๐ ,๐ฐ ) - Design philosophy: The Zen of Python (
๐ ) - Style guide: Style Guide for Python Code (
๐ ,๐คฏ ) - Data model: Data model (
๐ ,๐คฏ )
- Overview: What is Python (
- Syntax
- Variable: Built-in literals (
๐ฐ ) - Expression: Numeric operations (
๐ฐ ) - Conditional: if | if-else | if-elif-else (
๐ฐ ) - Loop: for-loop | while-loop (
๐ฐ ) - Function: def | lambda (
๐ฐ )
- Variable: Built-in literals (
- Data Structures
- List: List operations (
๐ฐ ) - Tuple: Tuple operations
- Set: Set operations
- Dict: Dictionary operations (
๐ฐ ) - Comprehension: list | tuple | set | dict
- String: String operations (
๐ฐ ) - Time complexity: cPython operations (
๐ ,๐คฏ )
- List: List operations (
- Classes
- Basic class: Basic definition (
๐ฐ ) - Abstract class: Abstract definition
- Exception class: Exception definition
- Iterator class: Iterator definition | yield (
๐คฏ )
- Basic class: Basic definition (
- Advanced
- Decorator: Decorator definition | wraps (
๐คฏ ) - Metaclass: Metaclass definition (
๐คฏ ) - Method resolution order: mro (
๐คฏ ) - Asyncio: async | await (
๐คฏ ) - Weak reference: weakref (
๐คฏ ) - Benchmark: cProfile | pstats (
๐คฏ ) - Context manager: Context managers (
๐คฏ )
- Decorator: Decorator definition | wraps (
Additional resources
GitHub repositories
Keep learning by reading from other well-regarded resources.
- TheAlgorithms/Python (
๐ ,๐งช ) - faif/python-patterns (
๐ ,๐งช ) - geekcomputers/Python (
๐งช ) - trekhleb/homemade-machine-learning (
๐งช ) - karan/Projects (
๐ง ) - MunGell/awesome-for-beginners (
๐ง ) - vinta/awesome-python
- academic/awesome-datascience
- josephmisiti/awesome-machine-learning
- ZuzooVn/machine-learning-for-software-engineers
Interactive practice
Keep practicing so that your coding skills don't get rusty.
- leetcode.com (
๐ ) - hackerrank.com (
๐ ) - kaggle.com (
๐ง ) - exercism.io
- projecteuler.net