2 followers
My name is Vitaly, and I'm a Python Developer enthusiastic about programming, learning new things and writing about them. Feel free to contact me here or via LinkedIn.
Today, I'm going to tell about using the heapq module. As you probably know, the easiest way to find the largest element in a collection in Python is...
You have probably already worked with the Python built-in round() function. It takes a number as an argument and simply rounds it. But depending on...
When writing a function that's supposed to return a sequence of results, returning some data structure like a list or dictionary is often the most...
Generators can help you write reusable and scalable Python code, but the problem is that complicated processing often requires using the same data...
Do you know how to easily assign data to variables from lists of different sizes? How to get a 'head' and 'tail' from a tuple without using clumsy...
Do you know how to keep track of the last five data points during some kind of processing instead of managing huge lists? How to append and pop items...