Python Quick Reference
This is the reference guide to Python that I wish had existed when I was learning the language.
Here's what I want in a reference guide:
This is not written as a full-fledged Python tutorial, though I ordered the topics such that you can read it like a tutorial (i.e., each topic depends only on material preceding it).
The guide was written using Python 2 but is fully compatible with Python 3. Relevant differences between Python 2 and 3 are noted throughout the guide.
Click to jump to the relevant section of the script or the notebook:
If you like the general format of this guide, but need more explanation of each topic, I highly recommend reading the Appendix of Python for Data Analysis. It presents the essentials of the Python language in a clear and focused manner.
If you are looking for a resource that will help you to learn Python from scratch, this is my list of recommended resources.
If there's a topic or example you'd like me to add to this guide, or you notice a mistake, please create a GitHub issue or leave a blog comment.
Thank you!