Skip to content

Glossary: Python Beyond the Basics

!r

Also written: repr conversion

An f-string marker that shows a value the way you would type it in code, so text keeps its quotes. For example, `GiftCard('Ada', 30)` shows `'Ada'` in quotes.

Where the book teaches it

Related terms

__repr__