Python Join List with Underscore [The Most Pythonic Way]

The ‘_’.join(list) method on the underscore string ‘_’ glues together all strings in the list using the underscore string as a delimiter—and returns a new string. For example, the expression ‘_’.join([‘a’, ‘b’, ‘c’]) returns the new string ‘a_b_c’. Definition and Usage The string.join(iterable) method joins the string elements in the iterable to a new string … Read more

What Are the Best Freelancing Sites for Coders?

Freelancing is the new way to organize the world’s talents. The appearance of big freelancing platforms made it possible to exchange talent efficiently—across borders, currencies, and niches. You can watch the following video as you go through the article: Freelance Developer Course Link This article is for you if: You’re a freelance developer and you’re … Read more

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

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

[Top 6] What’s the Best YouTube Channel to Learn Python? Channel #1 Will Surprise You

Best YouTube Channel Python

YouTube is a great way of learning Python. But those channels top all others. In this article, you’ll find a list of the top YouTube Channels — in reverse order! Corey SchΓ€fer #6 Channel link: https://www.youtube.com/user/schafer5/ 37,444,096 channel views Channel Description: This channel is focused on creating tutorials and walkthroughs for software developers, programmers, and … Read more

Does the Dot Regex (.) Match Whitespace Characters in Python?

Yes, the dot regex matches whitespace characters when using Python’s re module. Consider the following example: Try it yourself in our interactive Python shell (click “run”): The dot matches all characters in the string–including whitespaces. You can see that there are many whitespace characters ‘ ‘ among the matched characters. Need more info? Watch the … Read more

How to Add an Element to a Python List at an Index?

To add an element to a given Python list, you can use either of the three following methods: Use the list insert method list.insert(index, element). Use slice assignment lst[index:index] = [element] to overwrite the empty slice with a list of one element. Use list concatenation with slicing lst[:2] + [‘Alice’] + lst[2:] to create a … Read more

Matplotlib Animation – A Helpful Illustrated Guide

Photo by Gensa Hub on Unsplash

Creating animations in matplotlib is reasonably straightforward. However, it can be tricky when starting, and there is no consensus for the best way to create them. In this article, I show you a few methods you can use to make amazing animations in matplotlib. Matplotlib Animation Example The hardest thing about creating animations in matplotlib … Read more