Awesome
Ultimate Python study guide
Ultimate Python study guide for newcomers and professionals alike. :snake: :snake: :snake:
print("Ultimate Python study guide")
English | 한국어 | 繁体中文 | Español | Deutsch | हिन्दी
Motivation
I created this 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. :mortar_board:
Goals
Here are the primary goals of creating this guide:
:trophy: Serve as a resource for Python newcomers who prefer to learn hands-on.
This repository has a collection of standalone modules which can be run in an IDE
like PyCharm and in the browser like
Replit. Even a plain old terminal will work
with the examples. Most lines have carefully crafted comments which guide a reader
through what the programs are doing step-by-step. Users are encouraged to modify
source code anywhere as long as the main
routines are not deleted and
run successfully after each change.
:trophy: Serve as a pure guide for those who want to revisit core Python concepts.
Only builtin libraries are leveraged so that
these concepts can be conveyed without the overhead of domain-specific concepts. As
such, popular open-source libraries and frameworks (i.e. 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.
Getting started
Click the badge above to spin up a working environment in the browser without needing Git and Python installed on your local machine. If these requirements are already met, feel free to clone the repository directly.
Once the repository is accessible, you are ready to learn from the standalone modules. To get the most out of each module, read the module code and run it. There are two ways of running the modules:
- Run a single module:
python ultimatepython/syntax/variable.py
- Run all of the modules:
python runner.py
Table of contents
:books: = External resource, :cake: = Beginner topic, :exploding_head: = Advanced topic
- About Python
- Overview: What is Python ( :books:, :cake: )
- Design philosophy: The Zen of Python ( :books: )
- Style guide: Style Guide for Python Code ( :books:, :exploding_head: )
- Data model: Data model ( :books:, :exploding_head: )
- Standard library: The Python Standard Library ( :books:, :exploding_head: )
- Built-in functions: Built-in Functions ( :books: )
- Syntax
- Variable: Built-in literals ( :cake: )
- Expression: Numeric operations ( :cake: )
- Bitwise: Bitwise operators ( :cake: ), One's/Two's Complement ( :books: )
- Conditional: if | if-else | if-elif-else ( :cake: )
- Loop: for-loop | while-loop ( :cake: )
- Function: def | lambda ( :cake: )
- Data Structures
- List: List operations ( :cake: )
- Tuple: Tuple operations
- Set: Set operations
- Dict: Dictionary operations ( :cake: )
- Comprehension: list | tuple | set | dict
- String: String operations ( :cake: )
- Deque: deque ( :exploding_head: )
- Namedtuple: namedtuple ( :exploding_head: )
- Defaultdict: defaultdict ( :exploding_head: )
- Time complexity: cPython operations ( :books:, :exploding_head: )
- Classes
- Basic class: Basic definition ( :cake: )
- Inheritance: Inheritance ( :cake: )
- Abstract class: Abstract definition
- Exception class: Exception definition
- Iterator class: Iterator definition | yield ( :exploding_head: )
- Encapsulation: Encapsulation definition
- Advanced
- Decorator: Decorator definition | wraps ( :exploding_head: )
- File Handling: File Handling ( :exploding_head: )
- Context manager: Context managers ( :exploding_head: )
- Method resolution order: mro ( :exploding_head: )
- Mixin: Mixin definition ( :exploding_head: )
- Metaclass: Metaclass definition ( :exploding_head: )
- Thread: ThreadPoolExecutor ( :exploding_head: )
- Asyncio: async | await ( :exploding_head: )
- Weak reference: weakref ( :exploding_head: )
- Benchmark: cProfile | pstats ( :exploding_head: )
- Mocking: MagicMock | PropertyMock | patch ( :exploding_head: )
- Regular expression: search | findall | match | fullmatch ( :exploding_head: )
- Data format: json | xml | csv ( :exploding_head: )
- Datetime: datetime | timezone ( :exploding_head: )
Additional resources
:necktie: = Interview resource, :test_tube: = Code samples, :brain: = Project ideas
GitHub repositories
Keep learning by reading from other well-regarded resources.
- TheAlgorithms/Python ( :necktie: , :test_tube: )
- faif/python-patterns ( :necktie: , :test_tube: )
- geekcomputers/Python ( :test_tube: )
- trekhleb/homemade-machine-learning ( :test_tube: )
- karan/Projects ( :brain: )
- MunGell/awesome-for-beginners ( :brain: )
- vinta/awesome-python
- academic/awesome-datascience
- josephmisiti/awesome-machine-learning
- ZuzooVn/machine-learning-for-software-engineers
- 30-seconds/30-seconds-of-python ( :test_tube: )
- ml-tooling/best-of-python
- practical-tutorials/project-based-learning
- freeCodeCamp/freeCodeCamp ( :necktie: )
Interactive practice
Keep practicing so that your coding skills don't get rusty.
- codechef.com ( :necktie: )
- codeforces.com
- codementor.io ( :brain: )
- coderbyte.com ( :necktie: )
- codewars.com
- exercism.io
- geeksforgeeks.org ( :necktie: )
- hackerearth.com
- hackerrank.com ( :necktie: )
- kaggle.com ( :brain: )
- leetcode.com ( :necktie: )
- projecteuler.net
- replit.com
- w3schools.com ( :test_tube: )