Ways to Split a String into Equal Parts in Python

split string in half python

During my decade of working with Python, I’ve often had to break down large strings into manageable chunks. Whether I was processing social security numbers or formatting large batches of California zip codes, this task comes up more often than you’d think. In this tutorial, I’ll show you the most efficient ways to split a … Read more >>

How to Split a String by Index in Python

python split string by index

In my years of developing Python applications, I’ve often come across situations where the standard split() method just doesn’t cut it. Sometimes, you don’t have a delimiter like a comma or a space to rely on. You simply need to cut a string at a specific position. Whether you are parsing fixed-width data files or … Read more >>

How to Convert Binary to Decimal in Python

python binary to decimal

Binary numbers are the backbone of everything we do as developers, but let’s be honest, we rarely think in base-2. In my ten years of working with Python, I’ve often had to switch between binary and decimal, especially when working on low-level system integrations. Whether you are parsing data from a sensor or handling networking … Read more >>

Ways to Calculate Square Root in Python

square root python

I’ve found that calculating a square root is one of those tasks you’ll run into constantly. Whether I am building a financial model for a Wall Street firm or a simple geometry script, knowing the right way to find a square root is essential. In this tutorial, I will show you exactly how to calculate … Read more >>

How to Select Items From a List in Python

python select from list

Over my ten years of developing Python applications, I have often found that managing data within lists is one of the most frequent tasks I will face. Whether you are pulling specific stock symbols from a portfolio or filtering a list of US states for a shipping app, knowing how to grab exactly what you … Read more >>

How to Save Images in Python

python save image to directory

In my decade of working with Python, I’ve handled thousands of images across various automation and data science projects. Whether you are building a tool to process real estate photos or scraping product images for an e-commerce site, knowing how to save your output correctly is vital. In this tutorial, I will walk you through … Read more >>

Matplotlib Multiple Circle Plots

Matplotlib Multiple Circle Plots

Creating multiple circles in Matplotlib is one of those tasks that sounds simple until you actually try to align them perfectly. I have spent years building dashboards and data visualizations in Python, and I can tell you that there are at least three ways to do this. Each has its own place depending on whether … Read more >>

How to Create Multiple Violin Plots in Matplotlib

Create Multiple Violin Plots in Matplotlib

When I first started visualizing complex datasets, I often relied on box plots to see the distribution of my data. However, I quickly realized that box plots can hide important details, like whether a distribution has multiple peaks. That is when I discovered violin plots in Matplotlib, which combine a box plot with a kernel … Read more >>

How to Plot Multiple Rectangles in Matplotlib

Plot Multiple Rectangles in Matplotlib

When I first started building custom data visualizations in Python, I often found myself needing to highlight specific regions on a chart. Whether it’s marking recession periods in economic data or outlining specific clusters in a scatter plot, knowing how to draw shapes is a fundamental skill. In this tutorial, I will show you exactly … Read more >>

How to Plot a Matplotlib Secondary Y-Axis with a Log Scale

Plot Matplotlib Secondary Y-Axis with Log Scale

Plotting data with vastly different scales on the same chart can be a real headache. I’ve often found myself staring at a flat line on a linear scale, simply because one dataset overshadowed the other. In this tutorial, I will show you how to implement a secondary Y-axis and apply a logarithmic scale. This is … Read more >>

51 Python Programs

51 PYTHON PROGRAMS PDF FREE

Download a FREE PDF (112 Pages) Containing 51 Useful Python Programs.

pyython developer roadmap

Aspiring to be a Python developer?

Download a FREE PDF on how to become a Python developer.

Let’s be friends

Be the first to know about sales and special discounts.