Skip to main content

Drops

What is yield from? Python Generators
·1134 words·6 mins
Python Generators Drops
Have you ever seen the term yield from in some Python code and wondered what it was? In this article we will delve even deeper into generators and understand, with examples, what yield from means and how we can use it to make our code even more efficient.
Infinite Sequences in Python - Impressive Fibonacci
·1024 words·5 mins
Python Sequences Drops Fibonacci Itertools Islice
Did you know that you can create an infinite sequence without having memory problems and still consume this sequence in any way you want? Today we will see a specific function of the itertools standard library module, the islice, and see how can it be used to create the Fibonacci infinite sequence in Python.
Python Regular Expressions: Mastering RegEx
·3832 words·18 mins
Python String Format Regex Drops
Regular expressions (or, shortly, regex) are a language that detects patterns. You express a pattern that will be applied to strings. It is an efficient way to find patterns and extract information from texts. Within this pattern, each symbol represents a type of information. In this article, we will see the main symbols and their meanings with the help of several examples.
A Guide to Python String Format Techniques
·1610 words·8 mins
Python String Format F-Strings Drops
A significant part of our time is spent dealing with strings, so it is important to know how to present them in the desired way. This is what we will see in this article with several examples.
Generators in Python - Your Code 1000+ Times More Efficient
·1950 words·10 mins
Python Drops Performance Generators
Do you know the difference between a “normal” function and a generator function in Python? What is the difference between the return of a usual function and the yield of a generator? In this article we will answer these questions and also delve into some aspects of the language
Iterables vs Iterators in Python - Writing Efficient Code
·1414 words·7 mins
Python Drops Performance
Do you know what an iterable is? And an iterator? How to recognize these structures in Python? Answering these questions is the goal of this article.