Home » Python

Python

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 »

How to install Anaconda or Miniconda in Colab

Colab is the Google’s platform for working with Python notebooks and practice Deep Learning using different frameworks. It is a powerful platform, there is availability of GPUs or TPUs, it allows to use your Google Drive space for notebooks and data, has a friendly user interface and lots of useful features, but in order to install/update Python packages, it comes ...

Read More »

How to Print on the Same Line in Python: Print and Write

As someone who teaches a lot of beginner programming content, I occasionally stumble upon questions like “how do you print on the same line in Python?” Luckily, I have an answer to that! In short, there are two main ways to print on the same line in Python. For Python 2, use the following print syntax: print "Williamson",. For Python ...

Read More »

Python Zip Function Tutorial (Simple Examples)

The zip() function in Python programming is a built-in standard function that takes multiple iterables or containers as parameters. An iterable in Python is an object that can be iterated or stepped through like a collection. The zip() function is used to map the same indexes of more than one iterable. Mapping these indexes will generate a zip object How ...

Read More »

Better Unbound Python Descriptors

Welcome back from another hiatus! This post is a facepalm post because I recently realized that I’ve been an idiot for so long. I have a tendency to make things more complicated than they need to be, as can be seen in my articles about instance properties. I’ve briefly mentioned unbound attributes (Class.attr returns a function that you pass an ...

Read More »