Python Ellipsis (triple dots): What is it, How to Use
Chances are, you never ran into the Python ellipsis, consisting of three consecutive dots (…). I did, and I decided to do some research and … read more
Read the latest blog articles from Python Land, about Python and related topics.
Chances are, you never ran into the Python ellipsis, consisting of three consecutive dots (…). I did, and I decided to do some research and … read more
Let’s look at WSL, the Windows Subsystem for Linux. It allows you to run Linux on Windows. It even integrates tightly with Windows. You’ll discover … read more
You can obtain the result of the last expression in a Python REPL with the underscore, _. It’s not an operator but a variable that … read more
One of the best-known Python PEPs is PEP-20. It lists 19 theses or rules for Python programming called The Zen of Python. Tim Peters first … read more
The Pillow Python Imaging Library is ideal for image processing. Typically, it’s used for archival and batch processing applications. Of course, you’re free to use … read more
There’s a package for pretty much everything you can think of in the Python ecosystem, all installable with a simple pip command. So it shouldn’t … read more
With this trick, you can quickly convert a Python string to title case. To quote from the Wikipedia article: “Title case or headline case is a style of capitalization used … read more
With this neat little trick, you can swap two Python variables without using a third variable: It’s just one line of code! As you can … read more
A Python data class is a regular Python class that has the @dataclass decorator. It is specifically created to hold data. Since Python version 3.7, … read more
With Python, we can return multiple values at once. Obviously, most functions in Python return a single value, usually the result of the work done … read more