Skip to content

Glossary: Algorithms Beyond the Basics

Format codes

Also written: f-string format codes, :02d, :,, :03b

Short codes inside an f-string's braces that control how a value prints, such as `:02d` (zero-padded), `:<6` (left-aligned), `:,` (thousands commas) and `:03b` (binary).

Where the book teaches it

Related terms

Binary