Welcome to the first Issue of the Python Cheatsheet 🎉
Since the project was re-launched almost two months ago, many things have changed: The contents were revised, the examples updated, and new sections were added. The website was also completely redesigned with support for offline navigation, a dark mode, instant search, and a few other improvements.
This Newsletter is also part of those changes: we want to improve the communication with the community, and at the same time, provide you with interesting and relevant links, whether you are a beginner or advanced developer.
If you find this project useful, don't forget to drop a start on GitHub ❤
Anyone can forget how to make character classes for a regex, slice a list or do a for loop . This Python cheatsheet tries to provide basic reference for beginner and advanced developers, lower the entry barrier for newcomers and help veterans refresh the old tricks.
How to Reverse String in Python
In this short guide, learn how to reverse a string in Python, with practical code examples and best practices - using the slice notation with a negative step, a for loop, a while loop, join() and reversed().
Sorting Lists, Tuples, and Objects
In this video we will be learning how to sort lists, tuples, and other objects in Python.
Python Switch (Match-Case) Statements: Complete Guide
In this tutorial, you’ll learn how to use Python to create a switch-case statement.
This Is Why Python Data Classes Are Awesome
Data classes in Python are really powerful and not just for representing structured data. In this video I show you what you can do with dataclasses as well as new capabilities that have been added in Python 3.10.
Python's property(): Add Managed Attributes to Your Classes
In this step-by-step tutorial, you'll learn how to create managed attributes, also known as properties, using Python's property() in your custom classes.
Multiprocessing in Python
When you work on a computer vision project, you probably need to preprocess a lot of image data. This is time-consuming, and it would be great if you could process multiple images in parallel. Multiprocessing is the ability of a system to run multiple processors at one time.
PySnooper - Never use print for debugging again
PySnooper is a poor man's debugger. If you've used Bash, it's like set -x for Python, except it's fancier.
Click is a Python package for creating beautiful command line interfaces in a composable way with as little code as necessary.
Python is an amazing language with a strong and friendly community of programmers. However, there is a lack of documentation on what to learn after getting the basics of Python down your throat. Through this book I aim to solve this problem. I will give you bits of information about some interesting topics which you can further explore.
If you have a blog and want your article published in an upcoming Issue, email us to email@example.com.