How to Add Python to PATH

Add Python to PATH

I still remember the first time I tried to run a Python script on a new machine years ago. I typed python into the command prompt, hit enter, and was greeted with a “command not found” error. It is a frustrating roadblock that almost every developer hits when they are starting. In this guide, I … Read more >>

How to Handle Python Command Line Arguments

Handle Python Command Line Arguments

I have found that hardcoding values is the quickest way to make a script useless. I remember building a data scraper for a real estate firm in Chicago, where the city name was buried deep in the code. Every time they wanted to switch from Chicago to Houston, I had to manually edit the script. … Read more >>

How to Create a Python String of N Characters

python create string of n characters

In my years of developing Python applications, I’ve often found myself needing to generate a specific sequence of characters for formatting or data padding. Whether I was creating visual separators for a command-line tool or preparing fixed-width data for a financial report, knowing the quickest way to repeat a character is a handy trick. In … Read more >>

Python Hello World Program in Visual Studio Code

python hello world program visual studio

If you are a beginner in Python, you should start with a Hello World program as the starting point. Visual Studio Code (VS Code) is a powerful, open-source code editor that Python developers widely use. In this tutorial, I will explain how to write a Hello World program in Python using the Visual Studio Code … Read more >>

Python List of Floats

python list of floats

One of the most common tasks I handle as a Python developer is managing collections of decimal numbers. Whether I am building a financial dashboard for a Wall Street firm or a weather tracking app for the Midwest, I almost always reach for a list of floats. A list of floats in Python is simply … Read more >>

Ways to Insert a Python Variable into a String

python variable in string

As a Python developer, I’ve found that one of the most common tasks is putting a variable inside a string. Whether I’m building a report for a client in New York or personalizing an email for a user in California, I always need to format text dynamically. There are several ways to do this in … Read more >>

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 >>

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.