You are here : python_3Built-in Functionsformat

format() - Built-in Functions

Convert a value to a “formatted” representation, as controlled by
format_spec.  The interpretation of format_spec will depend on the type
of the value argument, however there is a standard formatting syntax that
is used by most built-in types: Format Specification Mini-Language.


Syntax

format(value[, format_spec])


Example


Output / Return Value


Limitations


Alternatives / See Also


Reference