x = f"There are {n} types of people"
print(type(x)==type("HELLO"))
If the formatted string and the normal string are of the same type. How does a function differentiate when it is formatted or when not?
My assumption is that whenever I point fin front of a string, the interpreter selects the value of the variables and formats it then and there, and the function receives a formatted string.
Is this a shorthand notation like lambdas in Java 8?
source
share