Source: 📖 Effective Python item 4
As well as referencing any variable within the current scope, you can also combine these variables with expressions within f-string specifier braces {}.
first_last = ['Juan', 'Coquet']
formatted = "My name is {' '.join(first_last)}."
print(formatted)
>>>
My name is Juan Coquet.
See also: