Python Language

The Tricky Python Bug I Created by Misunderstanding `bool()`

The Tricky Python Bug I Created by Misunderstanding bool()

I once hit a subtle Python bug by checking if bool(v.capitalize()) on a string. Here is why Python’s string-to-boolean conversion tricked me, …

Read More about The Tricky Python Bug I Created by Misunderstanding `bool()`
Case Sensitivity: A 70-Year Evolution from Fortran to Mojo

Case Sensitivity: A 70-Year Evolution from Fortran to Mojo

A data-driven deep dive into 70 years of programming history, from Pascal to Go and Nim, exploring why some languages care about capitalization while …

Read More about Case Sensitivity: A 70-Year Evolution from Fortran to Mojo
How to Check TCP Port Reachability in Python (Sync & Async)

How to Check TCP Port Reachability in Python (Sync & Async)

Nothing stalls a deployment quite like a ‘Connection Refused’ error that you didn’t see coming. Whether you’re debugging a …

Read More about How to Check TCP Port Reachability in Python (Sync & Async)
What Is a Variable in Programming? A Simple Guide for Beginners

What Is a Variable in Programming? A Simple Guide for Beginners

How do computer programs store and manipulate information? The answer lies in variables, the fundamental building blocks of programming. This …

Read More about What Is a Variable in Programming? A Simple Guide for Beginners
The Definitive Guide to Python Triple Quotes: Multiline, Quotes Inside and Docstring

The Definitive Guide to Python Triple Quotes: Multiline, Quotes Inside and Docstring

Triple quotes (""" or ‘’’) in Python are deceptively simple — yet incredibly powerful. They let you: Write multiline …

Read More about The Definitive Guide to Python Triple Quotes: Multiline, Quotes Inside and Docstring
Enums vs. Constants: Why Using Enums Is Safer & Smarter

Enums vs. Constants: Why Using Enums Is Safer & Smarter

Are you still using integers or strings to represent fixed categories in your code? If so, you’re at risk of introducing bugs. Enums provide …

Read More about Enums vs. Constants: Why Using Enums Is Safer & Smarter
The Bug I Hit When I Forgot a `return` in Python

The Bug I Hit When I Forgot a return in Python

I once hit a subtle Python bug just by forgetting the return keyword. Here’s what happened, why the function returned None, and how to avoid …

Read More about The Bug I Hit When I Forgot a `return` in Python
Make Numbers More Readable in Your Code

Make Numbers More Readable in Your Code

Have you ever seen a giant number in your code, like 100000000, and thought, What even is this? I explored 50 top programming languages to see which …

Read More about Make Numbers More Readable in Your Code
Python Learning Resources and Coding Conventions

Python Learning Resources and Coding Conventions

[Last update date: August 23, 2025]

If you’re looking to learn the Python programming language and improve your coding skills, using the right resources and following solid coding …

Read More about Python Learning Resources and Coding Conventions