Python Programming

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()`
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)
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
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
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