June 2019
Beginner to intermediate
770 pages
19h 24m
English
The __format__() method is used by f-strings, the str.format() method, as well as the format() built-in function. All three of these interfaces are used to create presentable string versions of a given object.
The following are the two ways in which arguments will be presented to the __format__() method of a someobject object:
Read now
Unlock full access