Posts by: Mehdi Lotfinejad

Free Python Quiz — Test Your Skills (2023)

This Python quiz is brought to you by Dataquest’s data professionals — it will help you determine where you are in your data science learning journey. This Python quiz includes 23 basic and intermediate questions that will help you determine your strengths and weaknesses in Python. At the end of this article, we will provide […]

Read More

How to Use Python Counters in 2023 (w/ 23 Code Examples)

We, as Python developers, may need to develop a piece of code that counts several repeated objects at once. There are different ways to perform this task. However, Python’s Counter class from the collections module provides the most efficient and straightforward solution to count individual items in an iterable object. In this tutorial, we will […]

Read More

How to Implement a B-Tree Data Structure (2023 Version)

Rudolf Bayer and Edward M. McCreight coined the term B-tree data structure at the Boeing Research Labs in 1971. They published a scientific paper titled "Organization and maintenance of large ordered indices" and introduced a new data structure for fast data retrieval from disks. Although the B-tree data structure has evolved over the decades, understanding […]

Read More

Regularization in Machine Learning (with Code Examples)

In this tutorial, we’ll learn what regularization is and why we use it. We’ll also discuss regularization techniques and how to use them. After you finish this tutorial, you’ll understand the following: Regularization in machine learning L1 regularization (lasso regression) L2 regularization (ridge regression) Elastic Net How to use these regularization techniques In this tutorial, […]

Read More

How to Copy a List in Python (5 Techniques w/ Examples)

Lists are commonly used data structures in Python. We will often encounter situations wherein we need to make a copy of a list, and you may ask yourself, "How can I copy a list in Python?" or "Which copy method suits my requirements best?" This tutorial will teach you how to copy or clone a […]

Read More