Home » Python

Python

8 Coolest Python Programming Language Features

After writing nearly 20 articles just about Python, I’ve decided to take some time to reflect on what I’ve learned. For instance, I recently wrote a compilation article which includes 70+ Python code snippets. Now, I’ve put together a list of some of the coolest Python programming language features. Coolest Python Features List And without further ado, let’s take a ...

Read More »

How to Perform a Reverse Dictionary Lookup in Python: Generator Expressions and More

Welcome to yet another Python tutorial. Today, we’re taking a look at dictionaries and how we can perform a reverse dictionary lookup. In words, how do we get a key from a dictionary given a value? As it turns out, there are three main solutions. First, we could try explicitly looping over the dictionary using something like my_dict.items(). Alternatively, we could ...

Read More »

71 Python Code Snippets for Everyday Problems

If you’ve been following me for any amount of time, you know that I regularly publish Python code snippets for everyday problems. Well, I figured I’d finally aggregate all those responses in one massive article with links to all those resources. Everyday Problems In this section, we’ll take a look at various common scenarios that arise and how to solve ...

Read More »

Python Standard Deviation Tutorial

The standard deviation allows you to measure how spread out numbers in a data set are. Large values of standard deviations show that elements in a data set are spread further apart from their mean value. In this tutorial, we will calculate the standard deviation using Python Small standard deviations show that items don’t deviate significantly from the mean value ...

Read More »

The Controversy Behind The Walrus Operator in Python

If you haven’t heard, Python 3.8 features a rather controversial new operator called the walrus operator. In this article, I’ll share some of my first impressions as well as the views from all sides. Feel free to share some of your thoughts as well in the comments. Understanding the Walrus Operator Recently, I was browsing dev.to, and I found a ...

Read More »