In JavaScript I can use a template literal and include calculate values. For example:
var a = 3;
var b = 8;
var text = `Adding ${a} + ${b} = ${a+b}`; // Adding 3 + 8 = 11
I know python has f'…'
strings and str.format()
with placeholder. Is there a way I can include a calculation in the string?