Open cjguttormsson opened 7 years ago
Python 3.6 added the ability to interpolate variables into strings using this syntax (following the other examples):
Variable interpolation:
count = 3 item = 'ball' print(f'{count} {item}s')
Here documents:
word = "amet" s = f"""lorem ipsum dolor sit {word}"""
Expression interpolation:
f'1 + 1 = {1 + 1}'
The relevant sections should be updated to indicate these capabilities.
Python 3.6 added the ability to interpolate variables into strings using this syntax (following the other examples):
Variable interpolation:
Here documents:
Expression interpolation:
The relevant sections should be updated to indicate these capabilities.