[lang-ref] String interpolation (variable) ( python )
def test_string_interpolation_with_variable():
# f'{x}'
name = 'John'
s = f'My name is {name}.'
assert s == 'My name is John.'
def test_string_interpolation_with_variable():
# f'{x}'
name = 'John'
s = f'My name is {name}.'
assert s == 'My name is John.'