Course
Simulator
More
Premium
Log in
Python Function Reference
Functions
format
format
Perform a string formatting operation.
Python 3.13
str
.
format
(
*
args
,
**
kwargs
)
*args
Positional arguments.
**kwargs
Keyword arguments.
Examples
Python 3.13
>>
>
'Hello, {}'
.
format
(
'world'
)
'Hello, world'