How to Pass Tuples to Python Functions

python pass tuple as arguments

Over my decade of developing Python applications, I’ve often found myself needing to group related data points. Whether I’m handling geographic coordinates for a logistics app in Chicago or processing financial records in New York, tuples are my go-to choice. One question I frequently get from junior developers I mentor is how to efficiently pass … Read more >>

How to Create a Python Tuple with One Element?

python tuple single element

I’ve spent years building applications in Python, and if there is one thing I’ve learned, it’s that the simplest syntax can sometimes be the most deceptive. The other day, I was mentoring a junior developer who was trying to pass a single US State code into a database function as a tuple. He wrote state … Read more >>

Python Percent Symbol (%)

percentage symbol in python

In my decade of building Python applications, I’ve found that few symbols are as versatile as the percent sign (%). While most beginners think it’s just for calculating remainders, it actually wears many hats in a professional codebase. I remember early in my career when I had to format complex financial reports for a New … Read more >>

Python Split Regex

python regex split

I have spent over a decade wrangling messy data in Python. One thing I’ve learned is that the standard split() method is great, but it often falls short. When you are dealing with real-world strings that have multiple different delimiters, you need something more powerful. That is where the Python split regex (Regular Expressions) comes … Read more >>

Python Dataclass vs. Normal Class

Python Dataclass vs. Normal Class

I remember the first time I had to build a large-scale inventory system for a retail client. I spent hours writing repetitive __init__ methods and manual equality checks for hundreds of product types. It was tedious and felt like I was fighting the language rather than using it to my advantage. Then I discovered Python … Read more >>

How to Use @dataclass in Python

@dataclass in Python

I have been writing Python for over a decade, and I remember the days when creating a simple data container felt like a chore. You had to write the constructor, the string representation, and the equality logic every single time. It was tedious and prone to errors. When Python 3.7 introduced the @dataclass decorator, it … Read more >>

How to Build a Simple OOP Project in Python

Simple OOP Project in Python

I remember when I first started coding in Python over a decade ago. Everything was a mess of global variables and long, confusing functions. Then I discovered Object-Oriented Programming (OOP), and it changed how I built tools. It was like moving from a messy desk to a perfectly organized filing cabinet. In this tutorial, I … Read more >>

Python Aggregation vs Composition

Python Aggregation vs Composition

I have spent many years building scalable applications in Python, and one thing I’ve learned is that how you structure your classes matters more than the code inside them. When I first started, I often struggled with “Has-A” relationships. I would frequently mix up when to use Aggregation and when to use Composition. Through years … Read more >>

Python Composition vs Inheritance

Python Composition vs Inheritance

I remember when I first started architecting large-scale Python applications for a startup. I often found myself struggling to decide whether a class should inherit from another or simply contain it. It is a classic debate that every seasoned developer faces: Composition vs. Inheritance. In this tutorial, I will share my firsthand experience to help … Read more >>

How to Set Tkinter Spinbox Default Value

Set Tkinter Spinbox Default Value

Setting a default value for a Tkinter Spinbox is one of those small tasks that can feel surprisingly tricky when you first start. I’ve spent a lot of time building custom data entry tools for logistics companies in Seattle, where efficiency is everything. You don’t want your users clicking a dozen times just to get … 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.