Welcome to Python Cheatsheet!

Welcome to pysheeet. This project aims at collecting useful Python snippets in order to enhance pythoneers’ coding experiences. Please feel free to contribute if you have any awesome ideas for improvements to code snippets, explanations, etc.

Any snippets are welcome. If you’d like to contribute, fork pysheeet on GitHub. If there is any question or suggestion, please create an issue on GitHub Issues.

What’s New In Python 3

The official document, What’s New In Python, displays all of the most important changes. However, if you’re too busy to read the whole changes, this part provides a brief glance of new features in Python 3.

Cheat Sheet

This part mainly focuses on common snippets in Python code. The cheat sheet not only includes basic Python features but also data structures and algorithms.

Advanced Cheat Sheet

The goal of this part is to give common snippets including built-in and 3rd party modules usages.

Appendix

The appendix mainly focuses on some critical concepts missing in cheat sheets.