String formating

You can use format() to do simple positional formatting, just like you could with “old style” formatting

>>> 'Hello, {}'.format(name)
'Hello, Bob'

Python 3.6 added a new string formatting approach called formatted string literals or “f-strings”. This new way of formatting strings lets you use embedded Python expressions inside string constants.

>>> f'Hello, {name}!'
'Hello, Bob!'