Skip to content
All lessons

Tech Insights· brandonchinn178.github.io

Debugging Python f-string errors

From brandonchinn178.github.io

Today, I encountered a fun bug where f"{x}" threw a TypeError, but str(x) worked. Join me on my journey unravelling what f-strings do and uncovering the mystery of why an object might not be what it seems.

Shared by

Read on brandonchinn178.github.io

Book a call

Lessons like this one
shape how we build.

Tell us what you’re building. In one call, we’ll show you how our team would approach it.

Tell us what you’re building, and we’ll show you how we’d approach it.

Still prefer the good old email? Contact us