Scrum vs. Waterfall vs. Agile – What’s Right for You?

In this article, we will completely ignore the coding technicalities and syntax for a change. We’ll focus on time and work management, which represents a significant portion of a skillset of well-rounded and successful companies and individuals.  Disclaimer: A clear distinction between project and product management might be blurred in some organizations, and could be … Read more

Python IndexError: List Index Out of Range [Easy Fix]

Key Points: To solve the “IndexError: list index out of range”, avoid do not access a non-existing list index. For example, my_list[5] causes an error for a list with three elements. If you access list elements in a loop, keep in mind that Python uses zero-based indexing: For a list with n elements, the first … Read more

Python Math Module [Ultimate Guide]

Photo by Erol Ahmed on Unsplash

Python’s math module provides you with some of the most popular mathematical functions you may want to use. In this article, I’ll take you through the most common ones. You can also watch the following tutorial video in which I’ll guide you through the article: The math module is part of the Python standard library, … Read more

How to Install Python on Windows? [7 Easy Steps]

Python is the fastest-growing major programming language in the world. Want to participate as a Python coder and install Python on your Windows machine? Here are the seven steps to install Python on Windows: Visit website “Python Releases for Windows”: https://www.python.org/downloads/windows/ Click link “Download Windows x86-64 executable installer” under “Stable Releases” header. A popup opens. … Read more

[NumPy vs Python] What are Advantages of NumPy Arrays over Regular Python Lists?

The Python built-in list data type is powerful. However, the NumPy array has many advantages over Python lists. What are they? Advantages NumPy Advantages Python Lists Multi-dimensional Slicing Library-Independent Broadcasting Functionality Intuitive Processing Speed Less Complicated Memory Footprint Heterogeneous List Data Allowed Many Convenience Methods Arbitrary Data Shape (Non-Square Matrix) Let’s dive into the most … Read more

Top 18 Cool Python Tricks

What are the coolest Python tricks? I’ve compiled this list of the best Python tricks—in reverse order. Without further ado, let’s dive into those crazy one-liner Python features, tricks, and functions: 18. Modifying Iterable Elements 1/2 The function map(func, iter) executes the function func on all elements of the iterable iter. Related article: Which is … Read more

Runtime Complexity of Python List Methods [Easy Table Lookup]

What’s the runtime complexity of various list methods? The following table summarizes the runtime complexity of all list methods. Assume that the length of the data type is defined as n (that is—len(data_type)). You can now categorize the asymptotic complexity of the different complexity functions as follows: Operation Example Complexity Index l[i] O(1) Store l[i] … Read more

Complexity of Python Operations

In this tutorial, you’ll learn the runtime complexity of different Python operations. Then, you’ll learn how to calculate the complexity of your own function by combining the complexity classes of its constituents. This is called “static analysis” The tutorial is loosely based on (source) but it extends it significantly with more practical examples, interactive snippets, … Read more