Thursday, September 11, 2025
STEM

Zip Function in Python: How and Why

The zip() function in Python is very useful, versatile, and efficient for combining elements from multiple iterables (like lists or tuples) into pairs or tuples. No, it’s not the file zipping functions most are familiar with in Windows; despite the same name, it’s an entirely different function for different purposes. Here are some practical scenarios […]

Read More
STEM

Why use dataclass decorator in Python?

A dataclass decorator in Python is a handy feature introduced in Python 3.7 to simplify the process of creating classes that primarily store data. The decorator generates boilerplate code, like init, repr, eq, and other special methods, making code more concise and readable. Essentially, using dataclasses simplifies the process of creating classes. In this post, […]

Read More
STEM

Stacks and Heap Basics in Python

Python, like most high-level programming languages, has the concept of stack and heap, although it might not be as explicit or direct as in C++ or Java. While we may not need to typically explicitly manage memory in Python, having this knowledge equips us with the skills to write better code, debug issues effectively, and […]

Read More
STEM

Password strength and cracking

In our digital age, the importance of having strong, secure passwords cannot be overstated. With cyber threats on the rise, ensuring that our online accounts are protected is more crucial than ever. In this blog post, I share the core mechanics of measuring a password strength and share a practical approach to estimate how long […]

Read More
STEM

Sorting algorithms explained, compared

In this post, I discuss some common sorting algorithms, their logic, share their implementation (code), and demonstrate each one with executable scripts. Then I compare their performances to identify the most efficient sorting algorithm(s). You’ll get a good overview of each one, learn how to code and use them, and understand their strengths and weaknesses. […]

Read More
STEM

Combinations in Python

In this post, I present the concept of calculating combinations from different choices. For educational fun, I will combine various parts of the bodies from two different creatures and see how many combinations we get. You’ll get to enter the animals to combine, and even get a name for your new mutant! If you have […]

Read More
Back To Top