How to format a string with variables code example Example: new python string formatting >>> f'Hello, {name}!' 'Hello, Bob!'