-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Kamal Banga edited this page Jul 18, 2019
·
62 revisions
Work in Progress 🚧 🏗
This Python 3 wiki is a free mini-book 📘:
- Tutorial: For those who know programming in C++/Java and want to learn Python.
- Reference 📃: Contains common usage with examples
- Idioms 💯: Better/Pythonic ways of doing common tasks
-
Common Pitfalls
⁉️ : Most prominent mistakes and Python quirks - Snippets and Recipes: Coding is best learnt by tinkering with common recipes.
- 📈 Python has had incredible growth and is the fastest-growing major programming language. It's used heavily at Instagram, Dropbox among others.
- It can do everything data from handling voluminous data (Apache Spark), exploring datasets (Numpy and Pandas), to machine learning (Scikit-learn and PyTorch).
- 🌏 It harbours one of the most used web frameworks (Django).
- 💡 It is dynamically typed and hence the learning curve is easy. It has first-class functions which means you can start learning and using it right away instead of the OOP bloat. It has "batteries included", meaning many useful constructs are included in the standard library.
- This book is code-heavy since I myself learnt Python mostly through trying self-contained examples rather than theory.
- Most code snippets are short and to the point so the particular concept can be grasped in a couple minutes.
- Ideas in this book are distilled from many great books and blogposts.
- Prose is succint and emojis filled.
-
>>>
means code is being run on python repl (in terminal) - python-3.6 means that part of code requires python version 3.6 or higher.
- Solving Sudoku by Peter Norvig
- Spell Correction by Peter Norvig
- DFS and BFS in Python
- Closures in Common Pitfalls chapter is taken from the book Fluent Python.
- Few snippets in Strings section, flattening nested iterable is from the book Python Cookbook, 3rd Ed.
- Central Limit Theorem and Pythagorean triplets snippets in Fun chapter are taken from Raymond Hettinger's tweets. The advice of "Specialized tool beats a general purpose tool" also comes from him.
- DFS in Fun chapter is taken from Edd Mann's blog.
- Example in Floating Point section in Common Pitfalls chapter is taken from Rachel Thomas' Computational Linear Algebra.
- Quicksort snippet has been taken from Python Cookbook, 2nd Ed.
Feedback: Please send all feedback to bangaDOTkamalATgmail.com