Called an f-string, it's new in python 3.6,
prior to that replace:
The new version is great when writing formatted reports.
prior to that replace:
print(f'\nstacklevel: {stacklevel}')with:
print('\nstacklevel: {}'.format(stacklevel))The second version will also work in python 3.6
The new version is great when writing formatted reports.