The f-strings, short for formatted strings, allow us to display expressions like adding a string to a number, without any error.
Every f-string statement consists of two parts, first the character f
, then the string that we want to format.
Next, we add the different kind of value in curly braces so it'll display as one print statement. Like here, with {2}.
print(f"{2} new messages")
>>> print(f"{2} massages")
2 massages