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.
Glossary: Python Beyond the Basics
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.