Skip to content

Glossary: Python Beyond the Basics

f-string debug specifier (=)

Also written: {x=}, self-documenting f-string

Writing `=` after a name inside an f-string's braces prints the code and its value, such as `total=42`. A quick way to inspect values.

Where the book teaches it

Related terms

breakpointf-string format specifiers